diff options
author | Sven Hesse | 2008-05-22 21:26:56 +0000 |
---|---|---|
committer | Sven Hesse | 2008-05-22 21:26:56 +0000 |
commit | beb81bdc6ec4634939aeaaaa91351c7028243388 (patch) | |
tree | f5071a047be585d3c66e5b8914171bca0c36e10f /engines/gob | |
parent | de38d0728175ab7f4625699518e5c515ac549de9 (diff) | |
download | scummvm-rg350-beb81bdc6ec4634939aeaaaa91351c7028243388.tar.gz scummvm-rg350-beb81bdc6ec4634939aeaaaa91351c7028243388.tar.bz2 scummvm-rg350-beb81bdc6ec4634939aeaaaa91351c7028243388.zip |
Fixing a valgrind warning
svn-id: r32218
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/video.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/video.cpp b/engines/gob/video.cpp index 3b059a2455..e5d6f17574 100644 --- a/engines/gob/video.cpp +++ b/engines/gob/video.cpp @@ -183,7 +183,7 @@ void Video::retrace(bool mouse) { int screenX = _screenDeltaX; int screenY = _screenDeltaY; int screenWidth = MIN<int>(_surfWidth, _vm->_width); - int screenHeight = MIN<int>(_surfHeight + _screenDeltaY - _splitHeight2, _vm->_height); + int screenHeight = MIN<int>(_surfHeight - _splitHeight2, _vm->_height); g_system->copyRectToScreen(_vm->_global->_primarySurfDesc->getVidMem() + screenOffset, _surfWidth, screenX, screenY, screenWidth, screenHeight); |