From d4d937743af7a6c1a6c35770cf753ad72f4e81df Mon Sep 17 00:00:00 2001 From: Slapparoo Date: Sat, 28 Jan 2023 08:15:43 +1300 Subject: [PATCH] Correct font --- src/Demo/Graphics/32BitPaint.ZC | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }