aboutsummaryrefslogtreecommitdiff
path: root/scumm/camera.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-30 02:01:45 +0000
committerMax Horn2003-05-30 02:01:45 +0000
commit37fa2df49acf2991c24c6b7e271ed4431f8dc5c5 (patch)
tree1fdda33120dcadeeb699105478fb1fd5340fde3a /scumm/camera.cpp
parent9f301f16e611c1b67ba3fca6508c3d11224c8df8 (diff)
downloadscummvm-rg350-37fa2df49acf2991c24c6b7e271ed4431f8dc5c5.tar.gz
scummvm-rg350-37fa2df49acf2991c24c6b7e271ed4431f8dc5c5.tar.bz2
scummvm-rg350-37fa2df49acf2991c24c6b7e271ed4431f8dc5c5.zip
cleanup; removed last horizontal bound check from updateDirtyRect -> now all the various 'offscreen actor redraw' problems should be fixed (at least I can't reproduce them in COMI anymore), while The Dig should still work just fine (at least it does in my test cases)
svn-id: r8129
Diffstat (limited to 'scumm/camera.cpp')
-rw-r--r--scumm/camera.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/scumm/camera.cpp b/scumm/camera.cpp
index 7a9fab4714..90119cb90d 100644
--- a/scumm/camera.cpp
+++ b/scumm/camera.cpp
@@ -320,15 +320,13 @@ void Scumm::cameraMoved() {
}
}
- _screenStartStrip = (camera._cur.x - (_screenWidth / 2)) >> 3;
+ _screenStartStrip = camera._cur.x / 8 - gdi._numStrips / 2;
_screenEndStrip = _screenStartStrip + gdi._numStrips - 1;
_screenTop = camera._cur.y - (_screenHeight / 2);
if (_features & GF_AFTER_V7) {
-
_screenLeft = camera._cur.x - (_screenWidth / 2);
} else {
-
_screenLeft = _screenStartStrip << 3;
}