aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2004-11-27 19:06:50 +0000
committerMax Horn2004-11-27 19:06:50 +0000
commitb64f1002c5702a9a05259ba66ffcc25b326cc461 (patch)
tree4720131deaf935a12dba375dabfd8f69c63d0960 /scumm
parent27d04815971a1c305d671fb9c2286adcda04dfa9 (diff)
downloadscummvm-rg350-b64f1002c5702a9a05259ba66ffcc25b326cc461.tar.gz
scummvm-rg350-b64f1002c5702a9a05259ba66ffcc25b326cc461.tar.bz2
scummvm-rg350-b64f1002c5702a9a05259ba66ffcc25b326cc461.zip
Fix for bug #1067982 (DIG: Parallax scrolling in library semi-broken)
svn-id: r15923
Diffstat (limited to 'scumm')
-rw-r--r--scumm/bomp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/bomp.cpp b/scumm/bomp.cpp
index 406e37c36c..ef8b0304e7 100644
--- a/scumm/bomp.cpp
+++ b/scumm/bomp.cpp
@@ -235,11 +235,11 @@ void ScummEngine::drawBomp(const BompDrawData &bd, bool mirror) {
src = bd.dataptr;
dst = (byte *)bd.dst.pixels + bd.y * bd.dst.pitch + (bd.x + clip.left);
- const byte maskbit = revBitMask[(bd.x + clip.left) & 7];
+ const byte maskbit = revBitMask[(bd.x + clip.left + virtscr[0].xstart) & 7];
// Mask against any additionally imposed mask
if (bd.maskPtr) {
- mask = bd.maskPtr + (bd.y * gdi._numStrips) + ((bd.x + clip.left) / 8);
+ mask = bd.maskPtr + (bd.y * gdi._numStrips) + ((bd.x + clip.left + (virtscr[0].xstart&7)) / 8);
}
// Setup vertical scaling