summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-bitmap-common.c2
-rw-r--r--firmware/export/lcd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index fb49deb76b..878c08863b 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -453,7 +453,7 @@ void LCDFN(scroll_fn)(void)
453 continue; 453 continue;
454 454
455 LCDFN(set_viewport)(s->vp); 455 LCDFN(set_viewport)(s->vp);
456 height = s->vp->line_height; 456 height = s->vp->line_height ?: (int)font_get(s->vp->font)->height;
457 457
458 if (s->backward) 458 if (s->backward)
459 s->offset -= LCDFN(scroll_info).step; 459 s->offset -= LCDFN(scroll_info).step;
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index e68795391f..f4336233ab 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -43,7 +43,7 @@ struct viewport {
43#ifdef HAVE_LCD_BITMAP 43#ifdef HAVE_LCD_BITMAP
44 int flags; 44 int flags;
45 int font; 45 int font;
46 int line_height; 46 int line_height; /* 0 for using font height */
47 int drawmode; 47 int drawmode;
48#endif 48#endif
49#if LCD_DEPTH > 1 49#if LCD_DEPTH > 1