fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17914 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
88055b2f2e
commit
4d2e91d252
1 changed files with 4 additions and 0 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Reference in a new issue