diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index a791a79f4c..584ead91dc 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) | |||
407 | if (width > 0) | 407 | if (width > 0) |
408 | { | 408 | { |
409 | unsigned int i; | 409 | unsigned int i; |
410 | unsigned char* bits = pf->bits + | 410 | const unsigned char* bits = pf->bits + |
411 | (pf->offset ? pf->offset[ch] : (pf->height * ch)); | 411 | (pf->offset ? pf->offset[ch] : (pf->height * ch)); |
412 | 412 | ||
413 | if (ofs != 0) | 413 | if (ofs != 0) |
@@ -416,7 +416,7 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str) | |||
416 | { | 416 | { |
417 | lcd_bitmap (bits + ofs, x, y + i, width, | 417 | lcd_bitmap (bits + ofs, x, y + i, width, |
418 | MIN(8, pf->height - i), true); | 418 | MIN(8, pf->height - i), true); |
419 | bits = (bitmap_t *)((int)bits + gwidth); | 419 | bits += gwidth; |
420 | } | 420 | } |
421 | } | 421 | } |
422 | else | 422 | else |