Rename function and only perform menu_animation_udpate is

render_this_frame is checked
This commit is contained in:
twinaphex 2015-08-21 04:56:14 +02:00
parent 2b6a6aeb04
commit 9744ce23ab
4 changed files with 6 additions and 5 deletions

View File

@ -101,7 +101,7 @@ bool menu_load_content(enum rarch_core_type type)
disp->msg_force = true;
menu_iterate(true, MENU_ACTION_NOOP);
menu_iterate_main_render();
menu_iterate_render();
if (!(main_load_content(0, NULL, NULL, menu_environment_get,
driver->frontend_ctx->process_args)))

View File

@ -174,7 +174,7 @@ void *menu_init(const void *data);
**/
int menu_iterate(bool render_this_frame, unsigned action);
int menu_iterate_main_render(void);
int menu_iterate_render(void);
/**
* menu_free:

View File

@ -436,7 +436,8 @@ int menu_iterate(bool render_this_frame, unsigned action)
menu_display_t *disp = menu_display_get_ptr();
menu_list_t *menu_list = menu_list_get_ptr();
menu_animation_update_time();
if (render_this_frame)
menu_animation_update_time();
menu_list_get_last_stack(menu_list, NULL, &label, NULL, NULL);
if (!menu || !menu_list)
@ -544,7 +545,7 @@ end:
return 0;
}
int menu_iterate_main_render(void)
int menu_iterate_render(void)
{
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
menu_handle_t *menu = menu_driver_get_ptr();

View File

@ -215,7 +215,7 @@ static void rarch_main_data_menu_iterate(void)
menu_environment_cb(MENU_ENVIRON_RESET_HORIZONTAL_LIST, NULL);
#endif
menu_iterate_main_render();
menu_iterate_render();
}
#endif