summaryrefslogtreecommitdiff
path: root/firmware/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 8e89e69a28..858a312ac6 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -605,7 +605,7 @@ const unsigned char* font_get_bits(struct font* pf, unsigned short char_code)
605 605
606 /* assume small font with uint16_t offsets*/ 606 /* assume small font with uint16_t offsets*/
607 bits = pf->bits + (pf->offset? 607 bits = pf->bits + (pf->offset?
608 ((uint16_t*)(pf->offset)[char_code]: 608 ((uint16_t*)(pf->offset))[char_code]:
609 (((pf->height + 7) / 8) * pf->maxwidth * char_code)); 609 (((pf->height + 7) / 8) * pf->maxwidth * char_code));
610 610
611 return bits; 611 return bits;