From 9e734b0851915924d1fc3115bbca0a3bd9a271a2 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 19 Apr 2006 06:22:15 +0000 Subject: Adds handleScreenChanged() to NewGui, so (scumm) engine can call it when it recives a EVENT_SCREEN_CHANGED. svn-id: r22025 --- gui/ThemeNew.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gui/ThemeNew.cpp') 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) { -- cgit v1.2.3