From c42f22cb8773c78e99bf5eb79ed4a784ead3cbc8 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Fri, 3 Oct 2008 08:10:38 +0000 Subject: 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 --- firmware/drivers/lcd-16bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/drivers/lcd-16bit.c') 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; -- cgit v1.2.3