aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 3cc3efabeb..0b5a5753ad 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1214,7 +1214,7 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi
sx = 0;
}
- while (numstrip && sx < _numStrips && x * 8 < _vm->_roomWidth) {
+ while (numstrip && sx < _numStrips && x * 8 < MAX(_vm->_roomWidth, (int) vs->w)) {
CHECK_HEAP;
if (y < vs->tdirty[sx])