aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/video.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/video.cpp')
-rw-r--r--engines/gob/video.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/gob/video.cpp b/engines/gob/video.cpp
index 4af5ece7c5..93b9f9b470 100644
--- a/engines/gob/video.cpp
+++ b/engines/gob/video.cpp
@@ -89,7 +89,9 @@ Video::Video(GobEngine *vm) : _vm(vm) {
_surfHeight = 200;
_scrollOffsetX = 0;
_scrollOffsetY = 0;
- _splitHeight = 200;
+ _splitHeight1 = 200;
+ _splitHeight2 = 0;
+ _splitStart = 0;
_curSparse = 0;
_lastSparse = 0xFFFFFFFF;
@@ -162,11 +164,11 @@ void Video::retrace(bool mouse) {
if (_vm->_global->_primarySurfDesc) {
g_system->copyRectToScreen(_vm->_global->_primarySurfDesc->getVidMem() +
_scrollOffsetY * _surfWidth + _scrollOffsetX, _surfWidth,
- 0, 0, 320, _splitHeight);
- if (_splitHeight < _surfHeight)
+ 0, 0, 320, _splitHeight1);
+ if (_splitHeight2 > 0)
g_system->copyRectToScreen(_vm->_global->_primarySurfDesc->getVidMem() +
- _splitHeight * _surfWidth, _surfWidth, 0, _splitHeight, 320,
- _surfHeight - _splitHeight);
+ _splitStart * _surfWidth, _surfWidth, 0,
+ 200 - _splitHeight2, 320, _splitHeight2);
g_system->updateScreen();
}
}