Cleanup xmb_render_messagebox
This commit is contained in:
parent
b20ab24fa2
commit
a687907bde
|
@ -404,10 +404,7 @@ static void xmb_render_messagebox(const char *message)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (list->elems == 0)
|
if (list->elems == 0)
|
||||||
{
|
goto end;
|
||||||
string_list_free(list);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
x = gl->win_width / 2 - strlen(list->elems[0].data) * xmb->font_size / 4;
|
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;
|
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);
|
xmb_draw_text(gl, xmb, msg, x, y + i * xmb->font_size, 1, 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
end:
|
||||||
string_list_free(list);
|
string_list_free(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue