mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-21 03:50:28 +00:00
(XMB) Avoid implicit memset and move some variables back into the loop
This commit is contained in:
parent
cbeee0ca1d
commit
ce3acb2ca4
@ -1013,9 +1013,6 @@ static void xmb_draw_items(xmb_handle_t *xmb, gl_t *gl,
|
|||||||
xmb_node_t *core_node = NULL;
|
xmb_node_t *core_node = NULL;
|
||||||
size_t end = 0;
|
size_t end = 0;
|
||||||
uint64_t frame_count = video_driver_get_frame_count();
|
uint64_t frame_count = video_driver_get_frame_count();
|
||||||
char name[PATH_MAX_LENGTH] = {0};
|
|
||||||
char value[PATH_MAX_LENGTH] = {0};
|
|
||||||
menu_entry_t entry = {{0}};
|
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
|
|
||||||
if (!list || !list->size || !menu)
|
if (!list || !list->size || !menu)
|
||||||
@ -1038,6 +1035,9 @@ static void xmb_draw_items(xmb_handle_t *xmb, gl_t *gl,
|
|||||||
|
|
||||||
for (i = 0; i < end; i++)
|
for (i = 0; i < end; i++)
|
||||||
{
|
{
|
||||||
|
char name[PATH_MAX_LENGTH];
|
||||||
|
char value[PATH_MAX_LENGTH];
|
||||||
|
menu_entry_t entry;
|
||||||
float icon_x, icon_y;
|
float icon_x, icon_y;
|
||||||
|
|
||||||
GLuint texture_switch = 0;
|
GLuint texture_switch = 0;
|
||||||
@ -1304,9 +1304,9 @@ static void xmb_frame(void)
|
|||||||
math_matrix_4x4 mymat, mrot, mscal;
|
math_matrix_4x4 mymat, mrot, mscal;
|
||||||
unsigned depth;
|
unsigned depth;
|
||||||
unsigned width, height;
|
unsigned width, height;
|
||||||
char msg[PATH_MAX_LENGTH] = {0};
|
char msg[PATH_MAX_LENGTH];
|
||||||
char title_msg[PATH_MAX_LENGTH] = {0};
|
char title_msg[PATH_MAX_LENGTH];
|
||||||
char timedate[PATH_MAX_LENGTH] = {0};
|
char timedate[PATH_MAX_LENGTH];
|
||||||
bool render_background = false;
|
bool render_background = false;
|
||||||
xmb_handle_t *xmb = NULL;
|
xmb_handle_t *xmb = NULL;
|
||||||
gl_t *gl = NULL;
|
gl_t *gl = NULL;
|
||||||
@ -1330,6 +1330,10 @@ static void xmb_frame(void)
|
|||||||
if (!gl)
|
if (!gl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
msg[0] = '\0';
|
||||||
|
title_msg[0] = '\0';
|
||||||
|
timedate[0] = '\0';
|
||||||
|
|
||||||
video_driver_get_size(&width, &height);
|
video_driver_get_size(&width, &height);
|
||||||
|
|
||||||
menu_display_font_bind_block(menu, font_driver, &xmb->raster_block);
|
menu_display_font_bind_block(menu, font_driver, &xmb->raster_block);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user