diff options
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; |