aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ThemeParser.cpp')
-rw-r--r--gui/ThemeParser.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp
index 226281122f..d4701c49f6 100644
--- a/gui/ThemeParser.cpp
+++ b/gui/ThemeParser.cpp
@@ -469,12 +469,15 @@ bool ThemeParser::parseDrawStep(ParserNode *stepNode, Graphics::DrawStep *drawst
drawstep->blitAlphaSrc = _theme->getAlphaBitmap(stepNode->values["file"]);
if (stepNode->values.contains("autoscale"))
- if (stepNode->values["autoscale"] == "true" || stepNode->values["autoscale"] == "stretch")
+ if (stepNode->values["autoscale"] == "true" || stepNode->values["autoscale"] == "stretch") {
drawstep->autoscale = Graphics::DrawStep::kAutoScaleStretch;
- else if (stepNode->values["autoscale"] == "fit")
+ } else if (stepNode->values["autoscale"] == "fit") {
drawstep->autoscale = Graphics::DrawStep::kAutoScaleFit;
- else
+ } else if (stepNode->values["autoscale"] == "9patch") {
+ drawstep->autoscale = Graphics::DrawStep::kAutoScaleNinePatch;
+ } else {
drawstep->autoscale = Graphics::DrawStep::kAutoScaleNone;
+ }
if (!drawstep->blitAlphaSrc)
return parserError("The given filename hasn't been loaded into the GUI.");