diff options
-rw-r--r-- | firmware/drivers/lcd-charcell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c index 9d42ab5b4b..76f7cf1b1e 100644 --- a/firmware/drivers/lcd-charcell.c +++ b/firmware/drivers/lcd-charcell.c @@ -492,7 +492,7 @@ void lcd_puts_scroll_offset(int x, int y, const unsigned char *string, lcd_puts_offset(x, y, string, offset); len = utf8length(string); - if (LCD_WIDTH - xmargin < len) + if (LCD_WIDTH - x - xmargin < len) { /* prepare scroll line */ char *end; |