diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-12 22:44:49 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-12 22:44:49 +0300 |
| commit | ac84186b2c91c4ce6334fde71af3b41d0d83f729 (patch) | |
| tree | 8e353b87fdc2d69707715293a0cd6b830fe962e9 /examples/notepad.c | |
| parent | d26bd78644544151b42600c5358d0fecc84b14f1 (diff) | |
fix(examples): correct font bit endianness (MSB to LSB) to fix horizontally mirrored text
Diffstat (limited to 'examples/notepad.c')
| -rw-r--r-- | examples/notepad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/notepad.c b/examples/notepad.c index 250be58..cb2cd61 100644 --- a/examples/notepad.c +++ b/examples/notepad.c @@ -242,7 +242,7 @@ static void draw_char(uint32_t *pixels, int w, int h, int px, int py, char c, ui 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)) { fill_rect(pixels, w, h, px + x * scale, py + y * scale, scale, scale, col); } } |
