aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index f2e013bc0a..665d190e6f 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -93,16 +93,11 @@ NewGui::NewGui() : _redrawStatus(kRedrawDisabled),
ConfMan.registerDefault("gui_theme", "default");
- Common::String style(ConfMan.get("gui_theme"));
- if (style.compareToIgnoreCase("default") == 0)
- style = "builtin";
-
- //DEBUG:
-// style = "scummodern";
-
- loadNewTheme(style);
+ Common::String themefile(ConfMan.get("gui_theme"));
+ if (themefile.compareToIgnoreCase("default") == 0)
+ themefile = "builtin";
- _theme->resetDrawArea();
+ loadNewTheme(themefile);
_themeChange = false;
}
@@ -130,7 +125,6 @@ bool NewGui::loadNewTheme(const Common::String &filename) {
return (!oldTheme.empty() ? loadNewTheme(oldTheme) : false);
_theme->init();
- _theme->resetDrawArea();
if (!oldTheme.empty())
screenChange();