Cleanup color_rect

This commit is contained in:
twinaphex 2015-02-11 05:09:31 +01:00
parent da004daa8a
commit e8ad0d183b

View File

@ -152,16 +152,10 @@ static void color_rect(uint16_t *buf, unsigned pitch,
static void blit_line(int x, int y, const char *message, bool green)
{
unsigned i, j;
rgui_handle_t *rgui = NULL;
if (!driver.menu)
return;
rgui = (rgui_handle_t*)driver.menu->userdata;
if (!rgui)
return;
while (*message)
{
for (j = 0; j < FONT_HEIGHT; j++)