diff options
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r-- | scumm/gfx.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index ef6127b5d2..1911347cdd 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1219,7 +1219,8 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi sx = 0; } - while (numstrip && sx < _numStrips && x * 8 < width) { + // FIXME Still not been calculated correctly + while (numstrip && sx < _numStrips && x * 8 < MAX(_vm->_roomWidth, (int) vs->w)) { CHECK_HEAP; if (y < vs->tdirty[sx]) |