git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17914 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-07-02 09:55:01 +00:00
parent 88055b2f2e
commit 4d2e91d252

View file

@ -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) ||