diff options
author | Max Horn | 2006-08-04 18:01:43 +0000 |
---|---|---|
committer | Max Horn | 2006-08-04 18:01:43 +0000 |
commit | 40835e42b931c96c3889448fed4f5cdd4d6704a2 (patch) | |
tree | 35eb2019e3282af85d6b16c28e4e5d6fbeabfe8e | |
parent | 0b50c4966cf1b378164a9df929820a69708c8531 (diff) | |
download | scummvm-rg350-40835e42b931c96c3889448fed4f5cdd4d6704a2.tar.gz scummvm-rg350-40835e42b931c96c3889448fed4f5cdd4d6704a2.tar.bz2 scummvm-rg350-40835e42b931c96c3889448fed4f5cdd4d6704a2.zip |
There is no need anymore to report EVENT_SCREEN_CHANGED changes to the GUI code
svn-id: r23668
-rw-r--r-- | engines/scumm/input.cpp | 4 | ||||
-rw-r--r-- | gui/newgui.cpp | 4 | ||||
-rw-r--r-- | gui/newgui.h | 3 |
3 files changed, 1 insertions, 10 deletions
diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp index e078d56c22..2abf471408 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 7cd0708597..7854e2e7a1 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 24bfe040d0..54815a2d51 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; |