diff options
author | Eugene Sandulenko | 2016-04-21 17:53:04 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-04-21 17:53:24 +0200 |
commit | f3f9a57d2a6a5a8efeb4f3881a688cd263ae0f45 (patch) | |
tree | 1c48a09df65921faec2dcc211a628bcd4e7e5994 /engines/wage | |
parent | 9d283aa356516fbb2a429050afd46365bcf6d70b (diff) | |
download | scummvm-rg350-f3f9a57d2a6a5a8efeb4f3881a688cd263ae0f45.tar.gz scummvm-rg350-f3f9a57d2a6a5a8efeb4f3881a688cd263ae0f45.tar.bz2 scummvm-rg350-f3f9a57d2a6a5a8efeb4f3881a688cd263ae0f45.zip |
WAGE: Make sure we're reporting only actually processed by the callback events
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/gui.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 7e703b18f5..2446be9945 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -369,6 +369,8 @@ bool Gui::processConsoleEvents(WindowClick click, Common::Event &event) { float scrollSize = (float)_consoleTextArea.height() / textFullSize; _consoleWindow->setScroll(scrollPos, scrollSize); + + return true; } else if (event.type == Common::EVENT_LBUTTONUP) { int oldScrollPos = _scrollPos; @@ -388,16 +390,20 @@ bool Gui::processConsoleEvents(WindowClick click, Common::Event &event) { _consoleFullRedraw = true; break; default: - break; + return false; } + + return true; } - return true; + return false; } if (click == kBorderInner) { if (event.type == Common::EVENT_LBUTTONDOWN) { startMarking(event.mouse.x, event.mouse.y); + + return true; } else if (event.type == Common::EVENT_LBUTTONUP) { if (_inTextSelection) { _inTextSelection = false; @@ -419,6 +425,8 @@ bool Gui::processConsoleEvents(WindowClick click, Common::Event &event) { _menu->enableCommand(kMenuEdit, kMenuActionClear, cutAllowed); } } + + return true; } else if (event.type == Common::EVENT_MOUSEMOVE) { if (_inTextSelection) { updateTextSelection(event.mouse.x, event.mouse.y); @@ -431,7 +439,7 @@ bool Gui::processConsoleEvents(WindowClick click, Common::Event &event) { } } - return true; + return false; } return false; |