start reducing calls to menu_clear_navigation
This commit is contained in:
parent
f52c79e197
commit
202b1e2006
|
@ -403,6 +403,8 @@ int menu_entries_push_list(menu_handle_t *menu,
|
||||||
bool do_action = false;
|
bool do_action = false;
|
||||||
bool is_history_list = !strcmp(label, "history_list");
|
bool is_history_list = !strcmp(label, "history_list");
|
||||||
|
|
||||||
|
menu_clear_navigation(driver.menu);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
RARCH_LOG("Label is: %s\n", label);
|
RARCH_LOG("Label is: %s\n", label);
|
||||||
RARCH_LOG("Path is: %s\n", path);
|
RARCH_LOG("Path is: %s\n", path);
|
||||||
|
|
|
@ -62,7 +62,6 @@ static int action_ok_push_history_list(const char *path,
|
||||||
|
|
||||||
menu_entries_push(driver.menu->menu_stack,
|
menu_entries_push(driver.menu->menu_stack,
|
||||||
"", label, type, driver.menu->selection_ptr);
|
"", label, type, driver.menu->selection_ptr);
|
||||||
menu_clear_navigation(driver.menu);
|
|
||||||
menu_entries_push_list(driver.menu, driver.menu->selection_buf,
|
menu_entries_push_list(driver.menu, driver.menu->selection_buf,
|
||||||
path, label, type);
|
path, label, type);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -341,7 +340,6 @@ static int action_ok_file_load_with_detect_core(const char *path,
|
||||||
"deferred_core_list",
|
"deferred_core_list",
|
||||||
0,
|
0,
|
||||||
driver.menu->selection_ptr);
|
driver.menu->selection_ptr);
|
||||||
menu_clear_navigation(driver.menu);
|
|
||||||
menu_entries_push_list(
|
menu_entries_push_list(
|
||||||
driver.menu,
|
driver.menu,
|
||||||
driver.menu->selection_buf,
|
driver.menu->selection_buf,
|
||||||
|
|
|
@ -440,12 +440,13 @@ int menu_shader_manager_setting_toggle(
|
||||||
}
|
}
|
||||||
else if (!strcmp(label, "video_shader_pass"))
|
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 *shader = (struct gfx_shader*)driver.menu->shader;
|
||||||
struct gfx_shader_pass *shader_pass = NULL;
|
struct gfx_shader_pass *shader_pass = NULL;
|
||||||
|
|
||||||
if (shader)
|
if (shader)
|
||||||
shader_pass = (struct gfx_shader_pass*)&shader->pass[hack_shader_pass];
|
shader_pass = (struct gfx_shader_pass*)&shader->pass[offset];
|
||||||
|
|
||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue