aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeEngine.cpp2
-rw-r--r--gui/ThemeParser.cpp11
2 files changed, 8 insertions, 5 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 545b9b5c56..26729b916f 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -334,7 +334,7 @@ void ThemeItemABitmap::drawSelf(bool draw, bool restore) {
_engine->restoreBackground(_area);
if (draw)
- _engine->renderer()->blitAlphaBitmap(_bitmap, _area, false);
+ _engine->renderer()->blitAlphaBitmap(_bitmap, _area);
_engine->addDirtyRect(_area);
}
diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp
index ca8b2631a5..226281122f 100644
--- a/gui/ThemeParser.cpp
+++ b/gui/ThemeParser.cpp
@@ -468,10 +468,13 @@ bool ThemeParser::parseDrawStep(ParserNode *stepNode, Graphics::DrawStep *drawst
drawstep->blitAlphaSrc = _theme->getAlphaBitmap(stepNode->values["file"]);
- if (stepNode->values.contains("autoscale") && stepNode->values["autoscale"] == "true")
- drawstep->autoscale = true;
- else
- drawstep->autoscale = false;
+ if (stepNode->values.contains("autoscale"))
+ if (stepNode->values["autoscale"] == "true" || stepNode->values["autoscale"] == "stretch")
+ drawstep->autoscale = Graphics::DrawStep::kAutoScaleStretch;
+ else if (stepNode->values["autoscale"] == "fit")
+ drawstep->autoscale = Graphics::DrawStep::kAutoScaleFit;
+ else
+ drawstep->autoscale = Graphics::DrawStep::kAutoScaleNone;
if (!drawstep->blitAlphaSrc)
return parserError("The given filename hasn't been loaded into the GUI.");