From 4d2e91d252060de993fd9ef0359060913e543a37 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 2 Jul 2008 09:55:01 +0000 Subject: [PATCH] fix red git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17914 a1c6a512-1295-4272-9138-f99709370657 --- firmware/scroll_engine.c | 4 ++++ 1 file changed, 4 insertions(+) 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) static bool line_overlaps_viewport(struct viewport *lines_vp, int line, struct viewport *othervp) { +#ifdef HAVE_LCD_BITMAP int y = (font_get(lines_vp->font)->height*line) + lines_vp->y; +#else + int y = lines_vp->y+line; +#endif if (y < othervp->y || y > othervp->y + othervp->height) return false; else if ((lines_vp->x + lines_vp->width < othervp->x) ||