mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 13:45:03 -05:00
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,
|
static bool line_overlaps_viewport(struct viewport *lines_vp, int line,
|
||||||
struct viewport *othervp)
|
struct viewport *othervp)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_LCD_BITMAP
|
||||||
int y = (font_get(lines_vp->font)->height*line) + lines_vp->y;
|
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)
|
if (y < othervp->y || y > othervp->y + othervp->height)
|
||||||
return false;
|
return false;
|
||||||
else if ((lines_vp->x + lines_vp->width < othervp->x) ||
|
else if ((lines_vp->x + lines_vp->width < othervp->x) ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue