(menu.c) menu_iterate - cleanups

This commit is contained in:
twinaphex 2015-02-11 19:17:30 +01:00
parent 8e42857488
commit b0bd9fdd9d

View File

@ -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();