diff options
Diffstat (limited to 'firmware/drivers/lcd-h100-remote.c')
-rw-r--r-- | firmware/drivers/lcd-h100-remote.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c index 2d16a08a24..d023aeb94b 100644 --- a/firmware/drivers/lcd-h100-remote.c +++ b/firmware/drivers/lcd-h100-remote.c | |||
@@ -1210,7 +1210,7 @@ void lcd_remote_puts_offset(int x, int y, const unsigned char *str, int offset) | |||
1210 | void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str, | 1210 | void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str, |
1211 | int style, int offset) | 1211 | int style, int offset) |
1212 | { | 1212 | { |
1213 | int xpos,ypos,w,h; | 1213 | int xpos,ypos,w,h,xrect; |
1214 | int lastmode = drawmode; | 1214 | int lastmode = drawmode; |
1215 | 1215 | ||
1216 | /* make sure scrolling is turned off on the line we are updating */ | 1216 | /* make sure scrolling is turned off on the line we are updating */ |
@@ -1226,8 +1226,8 @@ void lcd_remote_puts_style_offset(int x, int y, const unsigned char *str, | |||
1226 | (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID; | 1226 | (DRMODE_SOLID|DRMODE_INVERSEVID) : DRMODE_SOLID; |
1227 | lcd_remote_putsxyofs(xpos, ypos, offset, str); | 1227 | lcd_remote_putsxyofs(xpos, ypos, offset, str); |
1228 | drawmode ^= DRMODE_INVERSEVID; | 1228 | drawmode ^= DRMODE_INVERSEVID; |
1229 | lcd_remote_fillrect(xpos + w - offset, ypos, | 1229 | xrect = xpos + MAX(w - offset, 0); |
1230 | LCD_REMOTE_WIDTH - (xpos + w - offset), h); | 1230 | lcd_remote_fillrect(xrect, ypos, LCD_REMOTE_WIDTH - xrect, h); |
1231 | drawmode = lastmode; | 1231 | drawmode = lastmode; |
1232 | } | 1232 | } |
1233 | 1233 | ||