diff options
-rw-r--r-- | firmware/scroll_engine.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/scroll_engine.c b/firmware/scroll_engine.c index 9607c90448..2b99c14daa 100644 --- a/firmware/scroll_engine.c +++ b/firmware/scroll_engine.c | |||
@@ -88,7 +88,11 @@ void lcd_stop_scroll(void) | |||
88 | static bool line_overlaps_viewport(struct viewport *lines_vp, int line, | 88 | static bool line_overlaps_viewport(struct viewport *lines_vp, int line, |
89 | struct viewport *othervp) | 89 | struct viewport *othervp) |
90 | { | 90 | { |
91 | #ifdef HAVE_LCD_BITMAP | ||
91 | int y = (font_get(lines_vp->font)->height*line) + lines_vp->y; | 92 | int y = (font_get(lines_vp->font)->height*line) + lines_vp->y; |
93 | #else | ||
94 | int y = lines_vp->y+line; | ||
95 | #endif | ||
92 | if (y < othervp->y || y > othervp->y + othervp->height) | 96 | if (y < othervp->y || y > othervp->y + othervp->height) |
93 | return false; | 97 | return false; |
94 | else if ((lines_vp->x + lines_vp->width < othervp->x) || | 98 | else if ((lines_vp->x + lines_vp->width < othervp->x) || |