forked from len0rd/rockbox
Correct test to avoid drawing outside display, fixes a problem in sim with spacerocks, could possibly fix things on target too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18691 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
069f5420d6
commit
c42f22cb87
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ void lcd_vline(int x, int y1, int y2)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* nothing to draw? */
|
/* nothing to draw? */
|
||||||
if ((x >= current_vp->width) ||
|
if (((unsigned)x >= (unsigned)current_vp->width) ||
|
||||||
(y1 >= current_vp->height) ||
|
(y1 >= current_vp->height) ||
|
||||||
(y2 < 0))
|
(y2 < 0))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue