fixed bug that setup int parameters do not respect max value
This commit is contained in:
parent
b62c4ceae0
commit
f44aabb7ac
2
HISTORY
2
HISTORY
|
@ -426,3 +426,5 @@ Version 0.7.0
|
||||||
- fixed compiling fur unpatched VDR
|
- fixed compiling fur unpatched VDR
|
||||||
|
|
||||||
Version 0.7.1
|
Version 0.7.1
|
||||||
|
|
||||||
|
- fixed bug that setup int parameters do not respect the max value
|
||||||
|
|
|
@ -37,7 +37,7 @@ void cSkinSetupParameter::Debug(void) {
|
||||||
dsyslog("skindesigner: min %d, max %d", min, max);
|
dsyslog("skindesigner: min %d, max %d", min, max);
|
||||||
if (type == sptString && options) {
|
if (type == sptString && options) {
|
||||||
for (int i=0; i < numOptions; i++) {
|
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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -600,6 +600,7 @@ void cXmlParser::ParseSetupParameter(void) {
|
||||||
GetAttribute(attributeName, paramName);
|
GetAttribute(attributeName, paramName);
|
||||||
GetAttribute(attributeDisplayText, paramDisplayText);
|
GetAttribute(attributeDisplayText, paramDisplayText);
|
||||||
GetAttribute(attributeMin, paramMin);
|
GetAttribute(attributeMin, paramMin);
|
||||||
|
GetAttribute(attributeMax, paramMax);
|
||||||
GetAttribute(attributeOptions, paramOptions);
|
GetAttribute(attributeOptions, paramOptions);
|
||||||
GetNodeValue(paramValue);
|
GetNodeValue(paramValue);
|
||||||
|
|
||||||
|
|
|
@ -788,7 +788,6 @@ void cView::DoDrawTextBox(int num, cTemplateFunction *func, int x0, int y0) {
|
||||||
DrawText(num, pos, "...", clr, clrBack, fontName, fontSize);
|
DrawText(num, pos, "...", clr, clrBack, fontName, fontSize);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
esyslog("skindesigner: drawing regular line yLine %d", yLine);
|
|
||||||
DrawText(num, pos, wrapper.GetLine(line), clr, clrBack, fontName, fontSize);
|
DrawText(num, pos, wrapper.GetLine(line), clr, clrBack, fontName, fontSize);
|
||||||
yLine += fontHeight;
|
yLine += fontHeight;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue