aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index 4af5bea97e..db1935022c 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -591,12 +591,14 @@ Designed *Gui::mouseUp(int x, int y) {
switch (borderClick) {
case kBorderScrollUp:
- _scrollPos--;
+ _scrollPos = MAX<int>(0, _scrollPos - _consoleLineHeight);
_consoleDirty = true;
+ _consoleFullRedraw = true;
break;
case kBorderScrollDown:
- _scrollPos++;
+ _scrollPos = MIN<int>((_lines.size() - 2) * _consoleLineHeight, _scrollPos + _consoleLineHeight);
_consoleDirty = true;
+ _consoleFullRedraw = true;
break;
}
}