summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-h100-remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-h100-remote.c')
-rw-r--r--firmware/drivers/lcd-h100-remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c
index bf4445462d..ed5816cebf 100644
--- a/firmware/drivers/lcd-h100-remote.c
+++ b/firmware/drivers/lcd-h100-remote.c
@@ -1388,7 +1388,7 @@ void lcd_remote_puts_scroll_style_offset(int x, int y, const unsigned char *stri
1388 1388
1389 s->len = utf8length((char *)string); 1389 s->len = utf8length((char *)string);
1390 s->offset = offset; 1390 s->offset = offset;
1391 s->startx = x; 1391 s->startx = xmargin + x * s->width / s->len;;
1392 s->backward = false; 1392 s->backward = false;
1393 scrolling_lines |= (1<<y); 1393 scrolling_lines |= (1<<y);
1394 } 1394 }
@@ -1458,7 +1458,7 @@ static void scroll_thread(void)
1458 s->offset += scroll_step; 1458 s->offset += scroll_step;
1459 1459
1460 pf = font_get(curfont); 1460 pf = font_get(curfont);
1461 xpos = xmargin + s->startx * s->width / s->len; 1461 xpos = s->startx;
1462 ypos = ymargin + index * pf->height; 1462 ypos = ymargin + index * pf->height;
1463 1463
1464 if (s->bidir) { /* scroll bidirectional */ 1464 if (s->bidir) { /* scroll bidirectional */