diff options
author | Eugene Sandulenko | 2016-04-20 00:59:21 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-04-20 00:59:21 +0200 |
commit | 7861efb7ce2a571a92fe1ce70f118702233b9735 (patch) | |
tree | 6e4e1c9e323ebe9ef26d770df50a2b53e5568db2 | |
parent | d75dc3e660a826cd3ea36a785120617017fbd5df (diff) | |
download | scummvm-rg350-7861efb7ce2a571a92fe1ce70f118702233b9735.tar.gz scummvm-rg350-7861efb7ce2a571a92fe1ce70f118702233b9735.tar.bz2 scummvm-rg350-7861efb7ce2a571a92fe1ce70f118702233b9735.zip |
WAGE: Cleanup
-rw-r--r-- | engines/wage/gui.cpp | 13 | ||||
-rw-r--r-- | engines/wage/gui.h | 2 |
2 files changed, 5 insertions, 10 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 5aa4531388..d6703786ee 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -343,7 +343,6 @@ static void consoleWindowCallback(WindowClick click, Common::Event &event, void Gui *gui = (Gui *)g; gui->processConsoleEvents(click, event); - } void Gui::processConsoleEvents(WindowClick click, Common::Event &event) { @@ -481,11 +480,7 @@ bool Gui::processEvent(Common::Event &event) { mouseDown(event.mouse.x, event.mouse.y); break; case Common::EVENT_LBUTTONUP: - { - Designed *obj = mouseUp(event.mouse.x, event.mouse.y); - if (obj != NULL) - _engine->processTurn(NULL, obj); - } + mouseUp(event.mouse.x, event.mouse.y); break; default: @@ -495,7 +490,7 @@ bool Gui::processEvent(Common::Event &event) { return true; } -Designed *Gui::mouseUp(int x, int y) { +void Gui::mouseUp(int x, int y) { if (_menu->_menuActivated) { if (_menu->mouseRelease(x, y)) { _sceneDirty = true; @@ -504,7 +499,7 @@ Designed *Gui::mouseUp(int x, int y) { _menuDirty = true; } - return NULL; + return; } if (_inTextSelection) { @@ -528,7 +523,7 @@ Designed *Gui::mouseUp(int x, int y) { } } - return NULL; + return; } void Gui::mouseDown(int x, int y) { diff --git a/engines/wage/gui.h b/engines/wage/gui.h index aadb7ea3c8..14208513a5 100644 --- a/engines/wage/gui.h +++ b/engines/wage/gui.h @@ -93,7 +93,7 @@ public: bool processEvent(Common::Event &event); void mouseMove(int x, int y); void mouseDown(int x, int y); - Designed *mouseUp(int x, int y); + void mouseUp(int x, int y); void drawInput(); void setSceneDirty() { _sceneDirty = true; } const Graphics::Font *getFont(const char *name, Graphics::FontManager::FontUsage fallback); |