diff options
-rw-r--r-- | scumm/gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index ce648fce7d..3cc3efabeb 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -458,8 +458,8 @@ void Gdi::drawStripToScreen(VirtScreen *vs, int x, int width, int top, int botto assert(_textSurface.pixels); assert(_compositeBuf); - if (width > vs->w); - width = vs->w; + if (width > vs->w - x); + width = vs->w - x; // Clip to the visible part of the scene if (top < _vm->_screenTop) |