mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
Always assume we are going to render when calling menu_driver_iterate
This commit is contained in:
parent
721d566f99
commit
528a020d86
@ -202,7 +202,7 @@ static enum action_iterate_type action_iterate_type(uint32_t hash)
|
||||
*
|
||||
* Returns: 0 on success, -1 if we need to quit out of the loop.
|
||||
**/
|
||||
int generic_menu_iterate(bool render_this_frame, enum menu_action action)
|
||||
int generic_menu_iterate(enum menu_action action)
|
||||
{
|
||||
size_t selection;
|
||||
menu_entry_t entry;
|
||||
@ -227,8 +227,7 @@ int generic_menu_iterate(bool render_this_frame, enum menu_action action)
|
||||
|
||||
if (action != MENU_ACTION_NOOP || menu_entries_needs_refresh() || menu_display_ctl(MENU_DISPLAY_CTL_UPDATE_PENDING, NULL))
|
||||
{
|
||||
if (render_this_frame)
|
||||
BIT64_SET(menu->state, MENU_STATE_RENDER_FRAMEBUFFER);
|
||||
BIT64_SET(menu->state, MENU_STATE_RENDER_FRAMEBUFFER);
|
||||
}
|
||||
|
||||
switch (iterate_type)
|
||||
@ -299,8 +298,7 @@ int generic_menu_iterate(bool render_this_frame, enum menu_action action)
|
||||
break;
|
||||
}
|
||||
|
||||
if (render_this_frame)
|
||||
BIT64_SET(menu->state, MENU_STATE_BLIT);
|
||||
BIT64_SET(menu->state, MENU_STATE_BLIT);
|
||||
|
||||
if (BIT64_GET(menu->state, MENU_STATE_POP_STACK))
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ enum action_iterate_type
|
||||
ITERATE_TYPE_BIND
|
||||
};
|
||||
|
||||
int generic_menu_iterate(bool render_this_frame, enum menu_action action);
|
||||
int generic_menu_iterate(enum menu_action action);
|
||||
|
||||
bool generic_menu_init_list(void *data);
|
||||
|
||||
|
@ -1172,7 +1172,7 @@ static void zarch_context_reset(void)
|
||||
zui_font(menu);
|
||||
}
|
||||
|
||||
static int zarch_iterate(bool render_this_frame, enum menu_action action)
|
||||
static int zarch_iterate(enum menu_action action)
|
||||
{
|
||||
zui_t *zui = NULL;
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
@ -1185,11 +1185,8 @@ static int zarch_iterate(bool render_this_frame, enum menu_action action)
|
||||
if (!zui)
|
||||
return -1;
|
||||
|
||||
if (render_this_frame)
|
||||
{
|
||||
BIT64_SET(menu->state, MENU_STATE_RENDER_FRAMEBUFFER);
|
||||
BIT64_SET(menu->state, MENU_STATE_BLIT);
|
||||
}
|
||||
BIT64_SET(menu->state, MENU_STATE_RENDER_FRAMEBUFFER);
|
||||
BIT64_SET(menu->state, MENU_STATE_BLIT);
|
||||
|
||||
switch (action)
|
||||
{
|
||||
@ -1209,7 +1206,6 @@ static int zarch_iterate(bool render_this_frame, enum menu_action action)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if (zui->time_to_exit)
|
||||
{
|
||||
RARCH_LOG("Gets here.\n");
|
||||
|
@ -331,12 +331,12 @@ bool menu_driver_alive(void)
|
||||
return menu_alive;
|
||||
}
|
||||
|
||||
int menu_driver_iterate(bool render, enum menu_action action)
|
||||
int menu_driver_iterate(enum menu_action action)
|
||||
{
|
||||
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
|
||||
|
||||
if (driver->iterate)
|
||||
return driver->iterate(render, action);
|
||||
return driver->iterate(action);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ typedef struct menu_ctx_driver
|
||||
{
|
||||
void (*set_texture)(void);
|
||||
void (*render_messagebox)(const char *msg);
|
||||
int (*iterate)(bool render, enum menu_action action);
|
||||
int (*iterate)(enum menu_action action);
|
||||
void (*render)(void);
|
||||
void (*frame)(void);
|
||||
void* (*init)(void);
|
||||
@ -219,7 +219,7 @@ size_t menu_driver_list_get_selection(void);
|
||||
|
||||
bool menu_environment_cb(menu_environ_cb_t type, void *data);
|
||||
|
||||
int menu_driver_iterate(bool render, enum menu_action action);
|
||||
int menu_driver_iterate(enum menu_action action);
|
||||
|
||||
int menu_driver_bind_init(menu_file_list_cbs_t *cbs,
|
||||
const char *path, const char *label, unsigned type, size_t idx,
|
||||
|
@ -979,7 +979,7 @@ int rarch_main_iterate(unsigned *sleep_ms)
|
||||
#ifdef HAVE_MENU
|
||||
if (menu_driver_alive())
|
||||
{
|
||||
if (menu_driver_iterate(true, (enum menu_action)menu_input_frame(input, trigger_input)) == -1)
|
||||
if (menu_driver_iterate((enum menu_action)menu_input_frame(input, trigger_input)) == -1)
|
||||
rarch_ctl(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED, NULL);
|
||||
|
||||
if (!input && settings->menu.pause_libretro)
|
||||
|
Loading…
x
Reference in New Issue
Block a user