summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/lcd-bitmap-common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index 170ad374ea..9a5f865f2a 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -511,9 +511,10 @@ static bool LCDFN(puts_scroll_worker)(int x, int y, const unsigned char *string,
511 x = x * (linebased ? cwidth : 1); 511 x = x * (linebased ? cwidth : 1);
512 width = vp->width - x; 512 width = vp->width - x;
513 513
514 if (y >= vp->height || (height + y) > (vp->height)) 514 if (y >= vp->height)
515 return false; 515 return false;
516 516 if ((height + y) > (vp->height))
517 height = vp->height - y;
517 s = find_scrolling_line(x, y); 518 s = find_scrolling_line(x, y);
518 restart = !s; 519 restart = !s;
519 520