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 /firmware/drivers/lcd-16bit.c | |
parent | 069f5420d66526ea1cbcd38244b70f5307d9bd40 (diff) | |
download | rockbox-c42f22cb8773c78e99bf5eb79ed4a784ead3cbc8.tar.gz rockbox-c42f22cb8773c78e99bf5eb79ed4a784ead3cbc8.zip |
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
Diffstat (limited to 'firmware/drivers/lcd-16bit.c')
-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) | |||
515 | } | 515 | } |
516 | 516 | ||
517 | /* nothing to draw? */ | 517 | /* nothing to draw? */ |
518 | if ((x >= current_vp->width) || | 518 | if (((unsigned)x >= (unsigned)current_vp->width) || |
519 | (y1 >= current_vp->height) || | 519 | (y1 >= current_vp->height) || |
520 | (y2 < 0)) | 520 | (y2 < 0)) |
521 | return; | 521 | return; |