From 44c1032fbab88db035b397f075c86c61528b0222 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 9 Mar 2015 23:34:01 +0100 Subject: [PATCH] (XMB) Cleanups --- menu/drivers/xmb.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 4186798128..85a998846a 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -410,7 +410,7 @@ static void xmb_draw_text(gl_t *gl, xmb_handle_t *xmb, const char *str, float x, str, ¶ms, xmb->font.buf); } -static void xmb_render_background(gl_t *gl, xmb_handle_t *xmb, +static void xmb_frame_background(gl_t *gl, xmb_handle_t *xmb, bool force_transparency) { struct gl_coords coords; @@ -494,7 +494,7 @@ static void xmb_render_messagebox_internal(const char *message) strlcpy(xmb->box_message, message, sizeof(xmb->box_message)); } -static void xmb_render_messagebox(const char *message) +static void xmb_frame_messagebox(const char *message) { int x, y; unsigned i; @@ -1233,8 +1233,7 @@ static void xmb_frame(void) if (!gl) return; - - xmb_render_background(gl, xmb, false); + xmb_frame_background(gl, xmb, false); xmb_draw_text(gl, xmb, xmb->title_name, xmb->margins.title.left, xmb->margins.title.top, 1, 1, 0); @@ -1330,8 +1329,8 @@ static void xmb_frame(void) if (render_background) { - xmb_render_background(gl, xmb, true); - xmb_render_messagebox(msg); + xmb_frame_background(gl, xmb, true); + xmb_frame_messagebox(msg); } if (menu->mouse.enable)