diff options
Diffstat (limited to 'scumm/nut_renderer.cpp')
-rw-r--r-- | scumm/nut_renderer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/nut_renderer.cpp b/scumm/nut_renderer.cpp index 80eff150ff..1aa47d447f 100644 --- a/scumm/nut_renderer.cpp +++ b/scumm/nut_renderer.cpp @@ -209,6 +209,8 @@ 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) + continue; #if 1 if (pixel != 0) { dst[tx] = color; |