summaryrefslogtreecommitdiff
path: root/loader.c
diff options
context:
space:
mode:
authorChristian Tusche <chr13@gmx.net>2009-06-06 23:17:58 +0200
committerThomas Günther <tom@toms-cafe.de>2009-06-06 23:17:58 +0200
commit2a4bf008cd0a14d53fefec0c34573aab12424373 (patch)
tree12ee1c3021b4965f095b5ea81ab3a60f01217449 /loader.c
parent60cd7db51838bb076312fd10e08bca0f4a005f82 (diff)
parent3ab2393b6932b34e7f0e69af7f843d1303104d79 (diff)
downloadvdr-plugin-text2skin-2a4bf008cd0a14d53fefec0c34573aab12424373.tar.gz
vdr-plugin-text2skin-2a4bf008cd0a14d53fefec0c34573aab12424373.tar.bz2
Added chr13-optimizations (thanks to Christian Tusche / closes #39)
- increased efficiency in drawing list items in the main menu - introduce relative Pos and Size of objects to given BasePos, BaseSize (used to draw list items) - increase skin file version to 1.1 - the position of list items is interpreted relative to the "list" container when file version >= 1.1 - when a position is specified for "block" elements, the position of all contained elements is interpreted relative to the container position - selective update of changed objects refresh can be controlled for individual objects by the attributes "refresh" and "changed" default behaviour is to redraw everything (compatible with old skins) - moved state tracking of marquee, blink, scroll from cText2SkinRender to cxObject - fixed use of Update.Lock() in render.h - new: dynamic width/height of objects - new: Option "bgColor" used for items "Text", "Marquee", and "Blink". - remember period to next timeout when doing a non-timeout refresh prevent occasional start/stop of marquee-text
Diffstat (limited to 'loader.c')
-rw-r--r--loader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/loader.c b/loader.c
index fb98533..c8888c5 100644
--- a/loader.c
+++ b/loader.c
@@ -56,11 +56,12 @@ void cText2SkinLoader::Load(const char *Skin) {
cxSkin *skin = xmlParse(Skin, skinfile, translations, theme);
if (skin) {
- if (skin->Version() == cText2SkinPlugin::SkinVersion()) {
+ if (skin->Version() <= cText2SkinPlugin::SkinVersion()) {
new cText2SkinLoader(skin, translations, theme, Skin, skin->Title());
return;
} else
- esyslog("ERROR: text2skin: Skin is version %s, expecting %s", skin->Version().c_str(),
+ esyslog("ERROR: text2skin: Skin is version %i,%i, expecting <= %s",
+ skin->Version().Major(), skin->Version().Minor(),
cText2SkinPlugin::SkinVersion());
} else
esyslog("ERROR: error in skin file");