diff options
author | Sven Hesse | 2007-04-19 13:51:57 +0000 |
---|---|---|
committer | Sven Hesse | 2007-04-19 13:51:57 +0000 |
commit | 28df3debfdfbce08476bbec2900d53651de69bda (patch) | |
tree | 3ade4b7b564b77f408a89d3c5e7e28757bb987a7 /engines/gob/video.cpp | |
parent | fdea5abb34a8a00a4dfd02e8081aa550e43bedb7 (diff) | |
download | scummvm-rg350-28df3debfdfbce08476bbec2900d53651de69bda.tar.gz scummvm-rg350-28df3debfdfbce08476bbec2900d53651de69bda.tar.bz2 scummvm-rg350-28df3debfdfbce08476bbec2900d53651de69bda.zip |
- Fixed handling of the case split screen + vertical scrolling area
- Added manual vertical scrolling
- Restricting the mouse cursor to the upper part of the split screen now
svn-id: r26547
Diffstat (limited to 'engines/gob/video.cpp')
-rw-r--r-- | engines/gob/video.cpp | 12 |
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(); } } |