From 0fcbecf8851c326cc1cf0fc7bfb1194d761dce8c Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sun, 26 Oct 2014 01:17:41 +0200 Subject: [PATCH] (RGUI) Silence another warning --- frontend/menu/disp/rgui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/menu/disp/rgui.c b/frontend/menu/disp/rgui.c index 7f41f256db..4ea71bd7ac 100644 --- a/frontend/menu/disp/rgui.c +++ b/frontend/menu/disp/rgui.c @@ -108,7 +108,7 @@ static void color_rect(uint16_t *buf, unsigned pitch, unsigned j, i; for (j = y; j < y + height; j++) for (i = x; i < x + width; i++) - if (i >= 0 && j >= 0 && i < driver.menu->width && j < driver.menu->height) + if (i < driver.menu->width && j < driver.menu->height) buf[j * (pitch >> 1) + i] = color; }