summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-08-10 22:48:52 +0200
committerlouis <louis.braun@gmx.de>2015-08-10 22:48:52 +0200
commitf44aabb7ac97f329645bab102849150f5bc30983 (patch)
tree93a194fda82240ebe2057e7163745b99198a9651
parentb62c4ceae0568ef6e7c7adb92d7f01802173fc22 (diff)
downloadvdr-plugin-skindesigner-f44aabb7ac97f329645bab102849150f5bc30983.tar.gz
vdr-plugin-skindesigner-f44aabb7ac97f329645bab102849150f5bc30983.tar.bz2
fixed bug that setup int parameters do not respect max value
-rw-r--r--HISTORY2
-rw-r--r--libcore/skinsetup.c2
-rw-r--r--libtemplate/xmlparser.c1
-rw-r--r--views/view.c1
4 files changed, 4 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 2343591..0363c46 100644
--- a/HISTORY
+++ b/HISTORY
@@ -426,3 +426,5 @@ Version 0.7.0
- fixed compiling fur unpatched VDR
Version 0.7.1
+
+- fixed bug that setup int parameters do not respect the max value
diff --git a/libcore/skinsetup.c b/libcore/skinsetup.c
index c9ae7bd..1630cc9 100644
--- a/libcore/skinsetup.c
+++ b/libcore/skinsetup.c
@@ -37,7 +37,7 @@ void cSkinSetupParameter::Debug(void) {
dsyslog("skindesigner: min %d, max %d", min, max);
if (type == sptString && options) {
for (int i=0; i < numOptions; i++) {
- dsyslog("skindesigner: option %d: %s, translated: %s", i+1, options[i], optionsTranslated[i]);
+ dsyslog("skindesigner: option %d: %s", i+1, options[i]);
}
}
}
diff --git a/libtemplate/xmlparser.c b/libtemplate/xmlparser.c
index ba5684e..17fa2c6 100644
--- a/libtemplate/xmlparser.c
+++ b/libtemplate/xmlparser.c
@@ -600,6 +600,7 @@ void cXmlParser::ParseSetupParameter(void) {
GetAttribute(attributeName, paramName);
GetAttribute(attributeDisplayText, paramDisplayText);
GetAttribute(attributeMin, paramMin);
+ GetAttribute(attributeMax, paramMax);
GetAttribute(attributeOptions, paramOptions);
GetNodeValue(paramValue);
diff --git a/views/view.c b/views/view.c
index c2cfea9..fe20054 100644
--- a/views/view.c
+++ b/views/view.c
@@ -788,7 +788,6 @@ void cView::DoDrawTextBox(int num, cTemplateFunction *func, int x0, int y0) {
DrawText(num, pos, "...", clr, clrBack, fontName, fontSize);
break;
}
- esyslog("skindesigner: drawing regular line yLine %d", yLine);
DrawText(num, pos, wrapper.GetLine(line), clr, clrBack, fontName, fontSize);
yLine += fontHeight;
}