summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-bitmap-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-bitmap-common.c')
-rw-r--r--firmware/drivers/lcd-bitmap-common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index 8e3b52c246..fa18f9fa1f 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -470,8 +470,10 @@ void LCDFN(scroll_fn)(void)
470 } 470 }
471 else { 471 else {
472 /* scroll forward the whole time */ 472 /* scroll forward the whole time */
473 if (s->offset >= s->width) 473 if (s->offset >= s->width) {
474 s->offset %= s->width; 474 s->offset = 0;
475 s->start_tick = current_tick + LCDFN(scroll_info).delay * 2;
476 }
475 } 477 }
476 LCDFN(putsxyofs_style)(xpos, ypos, s->line, s->style, s->width, 478 LCDFN(putsxyofs_style)(xpos, ypos, s->line, s->style, s->width,
477 pf->height, s->offset); 479 pf->height, s->offset);