(RGUI) Silence another warning

This commit is contained in:
Twinaphex 2014-10-26 01:17:41 +02:00
parent 6ca1a18571
commit 0fcbecf885

View File

@ -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;
}