summaryrefslogtreecommitdiff
path: root/xml
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-12-09 14:27:06 +0000
committerlordjaxom <lordjaxom>2004-12-09 14:27:06 +0000
commite4c359b5c303cecfc49fb82799805da9fee8dadb (patch)
treeca09dced5d5794edac92e64c54b04a07a4a4c4ea /xml
parent5382d18d05d358bb1c313c642395e835aa44a6a0 (diff)
downloadvdr-plugin-text2skin-e4c359b5c303cecfc49fb82799805da9fee8dadb.tar.gz
vdr-plugin-text2skin-e4c359b5c303cecfc49fb82799805da9fee8dadb.tar.bz2
1.0-pre2v1.0-pre2
Diffstat (limited to 'xml')
-rw-r--r--xml/function.c7
-rw-r--r--xml/parser.c3
2 files changed, 6 insertions, 4 deletions
diff --git a/xml/function.c b/xml/function.c
index e6e321c..f283c2c 100644
--- a/xml/function.c
+++ b/xml/function.c
@@ -4,6 +4,7 @@
#include "xml/function.h"
#include "render.h"
+#include "bitmap.h"
#include "common.h"
#include <vdr/tools.h>
@@ -156,10 +157,8 @@ bool cxFunction::Parse(const std::string &Text)
const std::string &cxFunction::FunFile(const std::string &Param) const
{
std::string path = cText2SkinRender::ImagePath(Param);
- Dprintf("checking file(%s)\n", path.c_str());
- if (access(path.c_str(), F_OK) == 0)
- return Param;
- return False;
+ Dprintf("checking file(%s) in cache\n", path.c_str());
+ return cText2SkinBitmap::Load(path) ? Param : False;
}
std::string cxFunction::Evaluate(void) const
diff --git a/xml/parser.c b/xml/parser.c
index 1349769..4b957be 100644
--- a/xml/parser.c
+++ b/xml/parser.c
@@ -205,6 +205,9 @@ bool xStartElem(const std::string &name, std::map<std::string,std::string> &attr
|| name == "scrollbar") {
ATTRIB_OPT_STRING("color", object->mFg);
ATTRIB_OPT_STRING("bgColor", object->mBg);
+ ATTRIB_OPT_STRING("mark", object->mMark);
+ ATTRIB_OPT_STRING("active", object->mActive);
+ ATTRIB_OPT_STRING("keep", object->mKeep);
ATTRIB_OPT_FUNC ("current", object->mCurrent.Parse);
ATTRIB_OPT_FUNC ("total", object->mTotal.Parse);
}