From 40835e42b931c96c3889448fed4f5cdd4d6704a2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 4 Aug 2006 18:01:43 +0000 Subject: [PATCH] There is no need anymore to report EVENT_SCREEN_CHANGED changes to the GUI code svn-id: r23668 --- engines/scumm/input.cpp | 4 ---- gui/newgui.cpp | 4 ---- gui/newgui.h | 3 +-- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp index e078d56c224..2abf471408d 100644 --- a/engines/scumm/input.cpp +++ b/engines/scumm/input.cpp @@ -181,10 +181,6 @@ void ScummEngine::parseEvents() { _keyPressed = 'q'; break; - case OSystem::EVENT_SCREEN_CHANGED: - g_gui.handleScreenChange(); - break; - case OSystem::EVENT_QUIT: if (_confirmExit) confirmExitDialog(); diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 7cd0708597b..7854e2e7a1e 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -367,10 +367,6 @@ WidgetSize NewGui::getWidgetSize() { return (WidgetSize)(_theme->_evaluator->getVar("widgetSize")); } -void NewGui::handleScreenChange() { - _theme->refresh(); -} - void NewGui::clearDragWidget() { _dialogStack.top()->_dragWidget = 0; } diff --git a/gui/newgui.h b/gui/newgui.h index 24bfe040d0a..54815a2d511 100644 --- a/gui/newgui.h +++ b/gui/newgui.h @@ -80,8 +80,6 @@ public: WidgetSize getWidgetSize(); - void handleScreenChange(); - void clearDragWidget(); protected: @@ -90,6 +88,7 @@ protected: Theme *_theme; bool _needRedraw; + int _lastScreenChangeID; DialogStack _dialogStack; bool _stateIsSaved;