summaryrefslogtreecommitdiff
path: root/examples/notepad.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/notepad.c')
-rw-r--r--examples/notepad.c2
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);
}
}