diff options
Diffstat (limited to 'firmware/drivers/lcd-2bit-horz.c')
-rw-r--r-- | firmware/drivers/lcd-2bit-horz.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-2bit-horz.c b/firmware/drivers/lcd-2bit-horz.c index f965e1b707..abe608f6b6 100644 --- a/firmware/drivers/lcd-2bit-horz.c +++ b/firmware/drivers/lcd-2bit-horz.c | |||
@@ -710,7 +710,8 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str) | |||
710 | 710 | ||
711 | bits = font_get_bits(pf, ch); | 711 | bits = font_get_bits(pf, ch); |
712 | 712 | ||
713 | lcd_mono_bitmap_part(bits, ofs, 0, width, x, y, width - ofs, pf->height); | 713 | lcd_mono_bitmap_part(bits, ofs, 0, width, x, y, width - ofs, |
714 | pf->height); | ||
714 | 715 | ||
715 | x += width - ofs; | 716 | x += width - ofs; |
716 | ofs = 0; | 717 | ofs = 0; |
@@ -762,7 +763,7 @@ void lcd_puts_style_offset(int x, int y, const unsigned char *str, | |||
762 | (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID; | 763 | (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID; |
763 | lcd_putsxyofs(xpos, ypos, offset, str); | 764 | lcd_putsxyofs(xpos, ypos, offset, str); |
764 | drawmode ^= DRMODE_INVERSEVID; | 765 | drawmode ^= DRMODE_INVERSEVID; |
765 | lcd_fillrect(xpos + w, ypos, LCD_WIDTH - (xpos + w), h); | 766 | lcd_fillrect(xpos + w - offset, ypos, LCD_WIDTH - (xpos + w - offset), h); |
766 | drawmode = lastmode; | 767 | drawmode = lastmode; |
767 | } | 768 | } |
768 | 769 | ||