summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-recorder.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-recorder.c')
-rw-r--r--firmware/drivers/lcd-recorder.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index 89b041dc3d..8914e272ec 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -897,7 +897,8 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str)
897 897
898 bits = font_get_bits(pf, ch); 898 bits = font_get_bits(pf, ch);
899 899
900 lcd_mono_bitmap_part(bits, ofs, 0, width, x, y, width - ofs, pf->height); 900 lcd_mono_bitmap_part(bits, ofs, 0, width, x, y, width - ofs,
901 pf->height);
901 902
902 x += width - ofs; 903 x += width - ofs;
903 ofs = 0; 904 ofs = 0;
@@ -948,7 +949,7 @@ void lcd_puts_style_offset(int x, int y, const unsigned char *str,
948 (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID; 949 (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID;
949 lcd_putsxyofs(xpos, ypos, offset, str); 950 lcd_putsxyofs(xpos, ypos, offset, str);
950 drawmode ^= DRMODE_INVERSEVID; 951 drawmode ^= DRMODE_INVERSEVID;
951 lcd_fillrect(xpos + w, ypos, LCD_WIDTH - (xpos + w), h); 952 lcd_fillrect(xpos + w - offset, ypos, LCD_WIDTH - (xpos + w - offset), h);
952 drawmode = lastmode; 953 drawmode = lastmode;
953} 954}
954 955