diff options
Diffstat (limited to 'scumm/nut_renderer.cpp')
-rw-r--r-- | scumm/nut_renderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/nut_renderer.cpp b/scumm/nut_renderer.cpp index 1aa47d447f..f994511c29 100644 --- a/scumm/nut_renderer.cpp +++ b/scumm/nut_renderer.cpp @@ -209,7 +209,7 @@ void NutRenderer::drawChar(byte c, int32 x, int32 y, byte color, bool useMask) { maskpos = 0; for (int32 tx = 0; tx < width; tx++) { byte pixel = *src++; - if (x + tx >= 640 || y + ty >= 480) + if (x + tx < 0 || x + tx >= _vm->_realWidth || y + ty < 0 || y + ty >= _vm->_realHeight) continue; #if 1 if (pixel != 0) { |