diff options
Diffstat (limited to 'firmware/font.h')
-rw-r--r-- | firmware/font.h | 2 |
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 @@ /* MWIMAGEBITS helper macros*/ #define MWIMAGE_WORDS(x) (((x)+15)/16) /* image size in words*/ -#define MWIMAGE_BYTES(x) (((x)+7)/8) /* image size in bytes*/ +#define MWIMAGE_BYTES(x) (MWIMAGE_WORDS(x)*sizeof(MWIMAGEBITS)) #define MWIMAGE_BITSPERIMAGE (sizeof(MWIMAGEBITS) * 8) #define MWIMAGE_BITVALUE(n) ((MWIMAGEBITS) (((MWIMAGEBITS) 1) << (n))) #define MWIMAGE_FIRSTBIT (MWIMAGE_BITVALUE(MWIMAGE_BITSPERIMAGE - 1)) |