fixed bug that setup int parameters do not respect max value

This commit is contained in:
louis 2015-08-10 22:48:52 +02:00
parent b62c4ceae0
commit f44aabb7ac
4 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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]);
}
}
}

View File

@ -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);

View File

@ -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;
}