aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/game.cpp')
-rw-r--r--engines/gob/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp
index b544b2c234..8a6d6b6188 100644
--- a/engines/gob/game.cpp
+++ b/engines/gob/game.cpp
@@ -305,12 +305,14 @@ void Game::evaluateScroll(int16 x, int16 y) {
off = MIN(_vm->_draw->_cursorWidth, _vm->_draw->_scrollOffsetX);
off = MAX(off / 2, 1);
_vm->_draw->_scrollOffsetX -= off;
+ _vm->_video->dirtyRectsAll();
} else if ((y == 0) && (_vm->_draw->_scrollOffsetY > 0)) {
uint16 off;
off = MIN(_vm->_draw->_cursorHeight, _vm->_draw->_scrollOffsetY);
off = MAX(off / 2, 1);
_vm->_draw->_scrollOffsetY -= off;
+ _vm->_video->dirtyRectsAll();
}
int16 cursorRight = x + _vm->_draw->_cursorWidth;
@@ -327,6 +329,7 @@ void Game::evaluateScroll(int16 x, int16 y) {
off = MAX(off / 2, 1);
_vm->_draw->_scrollOffsetX += off;
+ _vm->_video->dirtyRectsAll();
_vm->_util->setMousePos(_vm->_width - _vm->_draw->_cursorWidth, y);
} else if ((cursorBottom >= (_vm->_height - _vm->_video->_splitHeight2)) &&
@@ -338,6 +341,7 @@ void Game::evaluateScroll(int16 x, int16 y) {
off = MAX(off / 2, 1);
_vm->_draw->_scrollOffsetY += off;
+ _vm->_video->dirtyRectsAll();
_vm->_util->setMousePos(x, _vm->_height - _vm->_video->_splitHeight2 -
_vm->_draw->_cursorHeight);