Fix for bug #1067982 (DIG: Parallax scrolling in library semi-broken)

svn-id: r15923
This commit is contained in:
Max Horn 2004-11-27 19:06:50 +00:00
parent 27d0481597
commit b64f1002c5

View File

@ -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