From 9ff8b67e138a5bfce740c8df16907523f03148ac Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 20 Oct 2002 01:08:54 +0000 Subject: [PATCH] transformed some code - is this if really needed?! if yes, for what? svn-id: r5192 --- scumm/gfx.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 46a7f8f96d5..b7c610330d5 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);