mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(XMB) Cleanup
This commit is contained in:
parent
e44f6d5d81
commit
bed86cc57e
@ -467,25 +467,18 @@ static void xmb_messagebox(void *data, const char *message)
|
|||||||
strlcpy(xmb->box_message, message, sizeof(xmb->box_message));
|
strlcpy(xmb->box_message, message, sizeof(xmb->box_message));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xmb_render_messagebox_internal(const char *message)
|
static void xmb_render_messagebox_internal(xmb_handle_t *xmb, const char *message)
|
||||||
{
|
{
|
||||||
int x, y, font_size;
|
int x, y, font_size;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
unsigned width, height;
|
unsigned width, height;
|
||||||
struct string_list *list = NULL;
|
struct string_list *list = NULL;
|
||||||
xmb_handle_t *xmb = NULL;
|
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
|
||||||
|
|
||||||
if (!menu)
|
|
||||||
return;
|
|
||||||
|
|
||||||
video_driver_get_size(&width, &height);
|
|
||||||
|
|
||||||
xmb = (xmb_handle_t*)menu->userdata;
|
|
||||||
|
|
||||||
if (!xmb)
|
if (!xmb)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
video_driver_get_size(&width, &height);
|
||||||
|
|
||||||
list = string_split(message, "\n");
|
list = string_split(message, "\n");
|
||||||
if (!list)
|
if (!list)
|
||||||
return;
|
return;
|
||||||
@ -1793,7 +1786,7 @@ static void xmb_frame(void *data)
|
|||||||
&coord_color[0], &coord_color2[0],
|
&coord_color[0], &coord_color2[0],
|
||||||
NULL, NULL, 4,
|
NULL, NULL, 4,
|
||||||
MENU_DISPLAY_PRIM_TRIANGLESTRIP);
|
MENU_DISPLAY_PRIM_TRIANGLESTRIP);
|
||||||
xmb_render_messagebox_internal(msg);
|
xmb_render_messagebox_internal(xmb, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set alpha components of colors */
|
/* set alpha components of colors */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user