1
0
Fork 0
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:
Nils Wallménius 2008-10-03 08:10:38 +00:00
parent 069f5420d6
commit c42f22cb87

View file

@ -515,7 +515,7 @@ void lcd_vline(int x, int y1, int y2)
}
/* nothing to draw? */
if ((x >= current_vp->width) ||
if (((unsigned)x >= (unsigned)current_vp->width) ||
(y1 >= current_vp->height) ||
(y2 < 0))
return;