hacked in some crude clipping code for drawChar; let's see if that helps Valgrind

svn-id: r6771
This commit is contained in:
Max Horn 2003-03-08 13:26:20 +00:00
parent 51531a7b09
commit 73f7f88c96

View File

@ -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;