aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2002-10-24 13:18:28 +0000
committerMax Horn2002-10-24 13:18:28 +0000
commit46ad85ce77610dafee13885a634241f84b396cdc (patch)
treec83b17da6cd93cd3c61477a2bc6897cc3b9bb6d7 /scumm/gfx.cpp
parente8d02de38cf702d236ad16fb784b615c7509072e (diff)
downloadscummvm-rg350-46ad85ce77610dafee13885a634241f84b396cdc.tar.gz
scummvm-rg350-46ad85ce77610dafee13885a634241f84b396cdc.tar.bz2
scummvm-rg350-46ad85ce77610dafee13885a634241f84b396cdc.zip
another hardcoded screen width
svn-id: r5303
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 7ed5bfc0c2..23dde977ff 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -2422,10 +2422,6 @@ void Scumm::cameraMoved()
assert(camera._cur.x >= (_realWidth / 2) && camera._cur.y >= (_realHeight / 2));
- _screenStartStrip = (camera._cur.x - (_realWidth / 2)) >> 3;
- _screenEndStrip = _screenStartStrip + gdi._numStrips - 1;
- virtscr[0].xstart = _screenStartStrip << 3;
-
_screenLeft = camera._cur.x - (_realWidth / 2);
_screenTop = camera._cur.y - (_realHeight / 2);
} else {
@@ -2435,11 +2431,11 @@ void Scumm::cameraMoved()
} else if (camera._cur.x + (_realWidth / 2) >= _scrWidth) {
camera._cur.x = _scrWidth - (_realWidth / 2);
}
-
- _screenStartStrip = (camera._cur.x >> 3) - 20;
- _screenEndStrip = _screenStartStrip + gdi._numStrips - 1;
- virtscr[0].xstart = _screenStartStrip << 3;
}
+
+ _screenStartStrip = (camera._cur.x - (_realWidth / 2)) >> 3;
+ _screenEndStrip = _screenStartStrip + gdi._numStrips - 1;
+ virtscr[0].xstart = _screenStartStrip << 3;
}
void Scumm::panCameraTo(int x, int y)