diff options
author | Max Horn | 2002-10-20 01:08:54 +0000 |
---|---|---|
committer | Max Horn | 2002-10-20 01:08:54 +0000 |
commit | 9ff8b67e138a5bfce740c8df16907523f03148ac (patch) | |
tree | bb419a231367252743d94021b85958c3e77c8da3 /scumm | |
parent | b5f0fa4c8b637fa1efccfc419ff652b31a802708 (diff) | |
download | scummvm-rg350-9ff8b67e138a5bfce740c8df16907523f03148ac.tar.gz scummvm-rg350-9ff8b67e138a5bfce740c8df16907523f03148ac.tar.bz2 scummvm-rg350-9ff8b67e138a5bfce740c8df16907523f03148ac.zip |
transformed some code - is this if really needed?! if yes, for what?
svn-id: r5192
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 46a7f8f96d..b7c610330d 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -241,9 +241,11 @@ void Gdi::drawStripToScreen(VirtScreen *vs, int x, int w, int t, int b) if (height > _vm->_realHeight) height = _vm->_realHeight; - scrollY = _vm->camera._cur.y - (_vm->_realHeight / 2); - if (scrollY == -(_vm->_realHeight / 2)) + // FIXME - is this check really necessary? + if (_vm->camera._cur.y == 0) scrollY = 0; + else + scrollY = _vm->_screenTop; ptr = vs->screenPtr + (t * NUM_STRIPS + x) * 8 + _readOffs + scrollY * _vm->_realWidth; _vm->_system->copy_rect(ptr, _vm->_realWidth, x * 8, vs->topline + t, w, height); |