diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/scroll_engine.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/scroll_engine.c b/firmware/scroll_engine.c index 2b99c14daa..0b3de6f84a 100644 --- a/firmware/scroll_engine.c +++ b/firmware/scroll_engine.c | |||
@@ -88,6 +88,7 @@ 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 | #if 0 | ||
91 | #ifdef HAVE_LCD_BITMAP | 92 | #ifdef HAVE_LCD_BITMAP |
92 | int y = (font_get(lines_vp->font)->height*line) + lines_vp->y; | 93 | int y = (font_get(lines_vp->font)->height*line) + lines_vp->y; |
93 | #else | 94 | #else |
@@ -99,6 +100,8 @@ static bool line_overlaps_viewport(struct viewport *lines_vp, int line, | |||
99 | (othervp->x + othervp->width < lines_vp->x)) | 100 | (othervp->x + othervp->width < lines_vp->x)) |
100 | return false; | 101 | return false; |
101 | return true; | 102 | return true; |
103 | #endif | ||
104 | return false; | ||
102 | } | 105 | } |
103 | /* Stop scrolling line y in the specified viewport, or all lines if y < 0 */ | 106 | /* Stop scrolling line y in the specified viewport, or all lines if y < 0 */ |
104 | void lcd_scroll_stop_line(struct viewport* current_vp, int y) | 107 | void lcd_scroll_stop_line(struct viewport* current_vp, int y) |