diff options
author | Max Horn | 2002-12-21 12:34:17 +0000 |
---|---|---|
committer | Max Horn | 2002-12-21 12:34:17 +0000 |
commit | 060562c2773cdfc28b78d1c08977070d94673ec2 (patch) | |
tree | 6b0836fd340d2fdebaddaf82abc28d56b15b89a3 /scumm/gfx.cpp | |
parent | 3b28dcbe3489d7459e58b63212b01118c0b10f9b (diff) | |
download | scummvm-rg350-060562c2773cdfc28b78d1c08977070d94673ec2.tar.gz scummvm-rg350-060562c2773cdfc28b78d1c08977070d94673ec2.tar.bz2 scummvm-rg350-060562c2773cdfc28b78d1c08977070d94673ec2.zip |
partial checkin of patch #655594 (handling Y/N questions); cleanup
svn-id: r6042
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r-- | scumm/gfx.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 65d4aa07be..ba4dacba5d 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -410,7 +410,10 @@ void Gdi::drawStripToScreen(VirtScreen *vs, int x, int w, int t, int b) if (height > _vm->_realHeight) height = _vm->_realHeight; - assert(_vm->_screenTop >= 0); + // Normally, _vm->_screenTop should always be >= 0, but for some old save games + // it is not, hence we check & correct it here. + if (_vm->_screenTop < 0) + _vm->_screenTop = 0; ptr = vs->screenPtr + (x + vs->xstart) + (_vm->_screenTop + t) * _vm->_realWidth; _vm->_system->copy_rect(ptr, _vm->_realWidth, x, vs->topline + t, w, height); |