diff options
author | Max Horn | 2009-01-02 01:23:17 +0000 |
---|---|---|
committer | Max Horn | 2009-01-02 01:23:17 +0000 |
commit | e6b9a3e4763f7802cbc5b7f7c12f12c5995ee23c (patch) | |
tree | 9a5671580d4525eb6b2da9041a0676e9d8a531c0 /gui/ThemeEngine.cpp | |
parent | 063cff91d58b64baf00010405d0cc0385c610fe3 (diff) | |
download | scummvm-rg350-e6b9a3e4763f7802cbc5b7f7c12f12c5995ee23c.tar.gz scummvm-rg350-e6b9a3e4763f7802cbc5b7f7c12f12c5995ee23c.tar.bz2 scummvm-rg350-e6b9a3e4763f7802cbc5b7f7c12f12c5995ee23c.zip |
GUI: Fix the recent regression where starting games directly (bypassing the launcher) would result in a black screen; also reinit the theme (which each time causes the full XML data to be parsed) less often
svn-id: r35661
Diffstat (limited to 'gui/ThemeEngine.cpp')
-rw-r--r-- | gui/ThemeEngine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index eed5eb9334..be381184c2 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -176,7 +176,8 @@ void ThemeEngine::refresh() { } void ThemeEngine::enable() { - init(); + if (_enabled) + return; if (_useCursor) { CursorMan.pushCursorPalette(_cursorPal, 0, MAX_CURS_COLORS); @@ -190,6 +191,9 @@ void ThemeEngine::enable() { } void ThemeEngine::disable() { + if (!_enabled) + return; + _system->hideOverlay(); if (_useCursor) { |