summaryrefslogtreecommitdiff
path: root/firmware/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/font.h')
-rw-r--r--firmware/font.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/font.h b/firmware/font.h
index 13d60e560b..8535ab216b 100644
--- a/firmware/font.h
+++ b/firmware/font.h
@@ -70,7 +70,7 @@
70 70
71/* MWIMAGEBITS helper macros*/ 71/* MWIMAGEBITS helper macros*/
72#define MWIMAGE_WORDS(x) (((x)+15)/16) /* image size in words*/ 72#define MWIMAGE_WORDS(x) (((x)+15)/16) /* image size in words*/
73#define MWIMAGE_BYTES(x) (((x)+7)/8) /* image size in bytes*/ 73#define MWIMAGE_BYTES(x) (MWIMAGE_WORDS(x)*sizeof(MWIMAGEBITS))
74#define MWIMAGE_BITSPERIMAGE (sizeof(MWIMAGEBITS) * 8) 74#define MWIMAGE_BITSPERIMAGE (sizeof(MWIMAGEBITS) * 8)
75#define MWIMAGE_BITVALUE(n) ((MWIMAGEBITS) (((MWIMAGEBITS) 1) << (n))) 75#define MWIMAGE_BITVALUE(n) ((MWIMAGEBITS) (((MWIMAGEBITS) 1) << (n)))
76#define MWIMAGE_FIRSTBIT (MWIMAGE_BITVALUE(MWIMAGE_BITSPERIMAGE - 1)) 76#define MWIMAGE_FIRSTBIT (MWIMAGE_BITVALUE(MWIMAGE_BITSPERIMAGE - 1))