From ac84186b2c91c4ce6334fde71af3b41d0d83f729 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 22:44:49 +0300 Subject: fix(examples): correct font bit endianness (MSB to LSB) to fix horizontally mirrored text --- examples/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/game.c') diff --git a/examples/game.c b/examples/game.c index 0a8bc18..bb6c729 100644 --- a/examples/game.c +++ b/examples/game.c @@ -76,7 +76,7 @@ static void draw_digit(uint32_t *pix, int w, int h, int px, int py, int digit, u for (int y = 0; y < 8; y++) { uint8_t row = glyph[y]; for (int x = 0; x < 8; x++) { - if (row & (1 << x)) { + if (row & (0x80 >> x)) { for (int dy = 0; dy < s; dy++) { int yy = py + y * s + dy; if (yy < 0 || yy >= h) continue; -- cgit v1.2.3