mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 23:01:58 +00:00
Fix for bug #1067982 (DIG: Parallax scrolling in library semi-broken)
svn-id: r15923
This commit is contained in:
parent
27d0481597
commit
b64f1002c5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user