diff --git a/src/Demo/Graphics/32BitPaint.ZC b/src/Demo/Graphics/32BitPaint.ZC index eaa2b86d..12cba665 100755 --- a/src/Demo/Graphics/32BitPaint.ZC +++ b/src/Demo/Graphics/32BitPaint.ZC @@ -44,9 +44,11 @@ I0 DrawScreenChar(I64 x, I64 y, I64 char) { I64 i, j; + U8 *fontPointer = text.font(U8*) + (char & 0xFF) * FONT_HEIGHT; + for (i = 0; i < FONT_HEIGHT; i++) for (j = 0; j < FONT_WIDTH; j++) - if ((text.font[char] >> (i * 8)) & (1 << j)) + if (Bt(fontPointer, i * FONT_WIDTH + j)) DrawScreenPixel(x + j, y + i, BLACK32); }