diff options
-rw-r--r-- | scumm/bomp.cpp | 4 |
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 |