aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/gfx.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index a3de607f2a..63af9081f3 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -992,8 +992,7 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int width, c
}
}
if (left <= theX && theX < right) {
- dst -= _vm->_screenWidth * height;
- dst++;
+ dst -= height * _vm->_screenWidth - 1;
}
}
@@ -1013,7 +1012,7 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int width, c
theY++;
if (theY >= height) {
if (left <= theX && theX < right) {
- mask_ptr -= _numStrips * height - 1;
+ mask_ptr -= height * _numStrips - 1;
}
theY = 0;
theX += 8;