mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-26 06:18:23 +00:00
hacked in some crude clipping code for drawChar; let's see if that helps Valgrind
svn-id: r6771
This commit is contained in:
parent
51531a7b09
commit
73f7f88c96
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user