aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeNew.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ThemeNew.cpp')
-rw-r--r--gui/ThemeNew.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index c02ff2e1d9..b7c509c0b2 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -400,7 +400,7 @@ void ThemeNew::drawButton(const Common::Rect &r, const Common::String &str, Stat
Common::Rect r2 = shadowRect(r, kShadowButton);
- if (hints & THEME_HINT_SAVE_BACKGROUND)
+ if (!(hints & THEME_HINT_NO_BACKGROUND_RESTORE) || state == kStateDisabled)
restoreBackground(r2);
// shadow