diff options
Diffstat (limited to 'firmware')
| -rw-r--r-- | firmware/drivers/lcd-recorder.c | 4 | ||||
| -rw-r--r-- | firmware/export/font.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index a791a79..584ead9 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c @@ -407,7 +407,7 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str) if (width > 0) { unsigned int i; - unsigned char* bits = pf->bits + + const unsigned char* bits = pf->bits + (pf->offset ? pf->offset[ch] : (pf->height * ch)); if (ofs != 0) @@ -416,7 +416,7 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str) { lcd_bitmap (bits + ofs, x, y + i, width, MIN(8, pf->height - i), true); - bits = (bitmap_t *)((int)bits + gwidth); + bits += gwidth; } } else diff --git a/firmware/export/font.h b/firmware/export/font.h index fff7d05..eeb8a36 100644 --- a/firmware/export/font.h +++ b/firmware/export/font.h @@ -97,7 +97,6 @@ struct font { const unsigned short *offset; /* offsets into bitmap data*/ const unsigned char *width; /* character widths or NULL if fixed*/ int defaultchar; /* default char (not glyph index)*/ - long bits_size; /* # words of bitmap_t bits*/ }; /* font routines*/ |