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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index 1a504c6f40..364fb3c527 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -435,7 +435,7 @@ void LCDFN(scroll_fn)(void)
435 int index; 435 int index;
436 int xpos, ypos; 436 int xpos, ypos;
437 struct viewport* old_vp = current_vp; 437 struct viewport* old_vp = current_vp;
438 bool makedelay = false; 438 bool makedelay;
439 439
440 for ( index = 0; index < LCDFN(scroll_info).lines; index++ ) { 440 for ( index = 0; index < LCDFN(scroll_info).lines; index++ ) {
441 s = &LCDFN(scroll_info).scroll[index]; 441 s = &LCDFN(scroll_info).scroll[index];
@@ -455,6 +455,7 @@ void LCDFN(scroll_fn)(void)
455 xpos = s->startx; 455 xpos = s->startx;
456 ypos = s->y * pf->height + s->y_offset; 456 ypos = s->y * pf->height + s->y_offset;
457 457
458 makedelay = false;
458 if (s->bidir) { /* scroll bidirectional */ 459 if (s->bidir) { /* scroll bidirectional */
459 if (s->offset <= 0) { 460 if (s->offset <= 0) {
460 /* at beginning of line */ 461 /* at beginning of line */