From b64f1002c5702a9a05259ba66ffcc25b326cc461 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 27 Nov 2004 19:06:50 +0000 Subject: Fix for bug #1067982 (DIG: Parallax scrolling in library semi-broken) svn-id: r15923 --- scumm/bomp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm') 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 -- cgit v1.2.3