aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/util.cpp')
-rw-r--r--engines/gob/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp
index ff6333aa9e..1b20ca249e 100644
--- a/engines/gob/util.cpp
+++ b/engines/gob/util.cpp
@@ -126,8 +126,8 @@ void Util::processInput(bool scroll) {
_vm->_global->_speedFactor = MIN(_fastMode + 1, 3);
if (scroll && hasMove) {
- if (y >= (200 - _vm->_video->_splitHeight2)) {
- y = 200 - _vm->_video->_splitHeight2 - 1;
+ if (y >= (_vm->_height - _vm->_video->_splitHeight2)) {
+ y = _vm->_height - _vm->_video->_splitHeight2 - 1;
_vm->_util->setMousePos(x, y);
}
_vm->_game->evaluateScroll(x, y);