aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/ThemeNew.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index 0322227d97..e955ffc293 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -656,6 +656,9 @@ void ThemeNew::drawRectMasked(const Common::Rect &r, const Graphics::Surface *co
int specialHeight = 0;
int specialWidth = 0;
+ if (alpha != 256)
+ restoreBackground(r);
+
if (drawHeight*2 > r.height()) {
drawHeight = r.height() / 2;
partsH = 2;
@@ -747,6 +750,9 @@ void ThemeNew::drawSurfaceMasked(const Common::Rect &r, const Graphics::Surface
const OverlayColor transparency = _colors[kColorTransparency];
+ if (alpha != 256)
+ restoreBackground(r);
+
if (upDown && !leftRight) { // upsidedown
src = (const OverlayColor*)surf->pixels + (surf->h - 1) * surf->w;
int drawWidth = (r.width() < surf->w) ? r.width() : surf->w;