Cleanup xmb_render_messagebox

This commit is contained in:
twinaphex 2015-02-11 06:27:28 +01:00
parent b20ab24fa2
commit a687907bde

View File

@ -404,10 +404,7 @@ static void xmb_render_messagebox(const char *message)
return;
if (list->elems == 0)
{
string_list_free(list);
return;
}
goto end;
x = gl->win_width / 2 - strlen(list->elems[0].data) * xmb->font_size / 4;
y = gl->win_height / 2 - list->size * xmb->font_size / 2;
@ -420,6 +417,7 @@ static void xmb_render_messagebox(const char *message)
xmb_draw_text(gl, xmb, msg, x, y + i * xmb->font_size, 1, 1, 0);
}
end:
string_list_free(list);
}