diff options
author | Nils Wallménius <nils@rockbox.org> | 2008-10-03 08:10:38 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2008-10-03 08:10:38 +0000 |
commit | c42f22cb8773c78e99bf5eb79ed4a784ead3cbc8 (patch) | |
tree | 495e4c00799a0d0846d15e2a743f997476030a8f | |
parent | 069f5420d66526ea1cbcd38244b70f5307d9bd40 (diff) |
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
-rw-r--r-- | firmware/drivers/lcd-16bit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c index a7e89b0d6d..9b700a0669 100644 --- a/firmware/drivers/lcd-16bit.c +++ b/firmware/drivers/lcd-16bit.c @@ -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; |