diff options
author | Johannes Schickel | 2006-04-19 06:22:15 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-04-19 06:22:15 +0000 |
commit | 9e734b0851915924d1fc3115bbca0a3bd9a271a2 (patch) | |
tree | 1ea1f860e9a8dfd8ccbe1c7fb4a70fc4fff6447f /gui/ThemeNew.cpp | |
parent | 1c65f3417af37329284a0f36f4b451d11308660a (diff) | |
download | scummvm-rg350-9e734b0851915924d1fc3115bbca0a3bd9a271a2.tar.gz scummvm-rg350-9e734b0851915924d1fc3115bbca0a3bd9a271a2.tar.bz2 scummvm-rg350-9e734b0851915924d1fc3115bbca0a3bd9a271a2.zip |
Adds handleScreenChanged() to NewGui, so (scumm) engine can call it when it recives a EVENT_SCREEN_CHANGED.
svn-id: r22025
Diffstat (limited to 'gui/ThemeNew.cpp')
-rw-r--r-- | gui/ThemeNew.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index 2b32425996..fc10da82c1 100644 --- a/gui/ThemeNew.cpp +++ b/gui/ThemeNew.cpp @@ -354,7 +354,8 @@ void ThemeNew::deinit() { void ThemeNew::refresh() { init(); resetupGuiRenderer(); - _system->showOverlay(); + if (_enabled) + _system->showOverlay(); } void ThemeNew::enable() { @@ -364,12 +365,14 @@ void ThemeNew::enable() { _system->showOverlay(); clearAll(); setUpCursor(); + _enabled = true; } void ThemeNew::disable() { _system->hideOverlay(); _system->setPalette(_backUpCols, 0, MAX_CURS_COLORS); _needPaletteUpdates = false; + _enabled = false; } void ThemeNew::openDialog(bool topDialog) { |