start reducing calls to menu_clear_navigation

This commit is contained in:
twinaphex 2014-10-12 23:31:04 +02:00
parent f52c79e197
commit 202b1e2006
3 changed files with 5 additions and 4 deletions

View File

@ -403,6 +403,8 @@ int menu_entries_push_list(menu_handle_t *menu,
bool do_action = false;
bool is_history_list = !strcmp(label, "history_list");
menu_clear_navigation(driver.menu);
#if 0
RARCH_LOG("Label is: %s\n", label);
RARCH_LOG("Path is: %s\n", path);

View File

@ -62,7 +62,6 @@ static int action_ok_push_history_list(const char *path,
menu_entries_push(driver.menu->menu_stack,
"", label, type, driver.menu->selection_ptr);
menu_clear_navigation(driver.menu);
menu_entries_push_list(driver.menu, driver.menu->selection_buf,
path, label, type);
return 0;
@ -341,7 +340,6 @@ static int action_ok_file_load_with_detect_core(const char *path,
"deferred_core_list",
0,
driver.menu->selection_ptr);
menu_clear_navigation(driver.menu);
menu_entries_push_list(
driver.menu,
driver.menu->selection_buf,

View File

@ -440,12 +440,13 @@ int menu_shader_manager_setting_toggle(
}
else if (!strcmp(label, "video_shader_pass"))
{
hack_shader_pass = type - MENU_SETTINGS_SHADER_PASS_0;
unsigned offset = type - MENU_SETTINGS_SHADER_PASS_0;
hack_shader_pass = offset;
struct gfx_shader *shader = (struct gfx_shader*)driver.menu->shader;
struct gfx_shader_pass *shader_pass = NULL;
if (shader)
shader_pass = (struct gfx_shader_pass*)&shader->pass[hack_shader_pass];
shader_pass = (struct gfx_shader_pass*)&shader->pass[offset];
switch (action)
{