mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(menu.c) menu_iterate - cleanups
This commit is contained in:
parent
8e42857488
commit
b0bd9fdd9d
12
menu/menu.c
12
menu/menu.c
@ -355,11 +355,13 @@ int menu_iterate(retro_input_t input,
|
||||
int32_t ret = 0;
|
||||
unsigned action = menu_input_frame(input, trigger_input);
|
||||
|
||||
if (driver.menu_ctx && driver.menu_ctx->set_texture)
|
||||
driver.menu_ctx->set_texture(driver.menu);
|
||||
|
||||
if (driver.menu_ctx && driver.menu_ctx->entry_iterate)
|
||||
ret = driver.menu_ctx->entry_iterate(action);
|
||||
if (driver.menu_ctx)
|
||||
{
|
||||
if (driver.menu_ctx->set_texture)
|
||||
driver.menu_ctx->set_texture(driver.menu);
|
||||
if (driver.menu_ctx->entry_iterate)
|
||||
ret = driver.menu_ctx->entry_iterate(action);
|
||||
}
|
||||
|
||||
if (g_extern.is_menu)
|
||||
draw_frame();
|
||||
|
Loading…
x
Reference in New Issue
Block a user