Cleanups pt. 2

This commit is contained in:
twinaphex 2015-08-21 04:03:59 +02:00
parent c222b20ec1
commit b09f43ab3a
3 changed files with 6 additions and 7 deletions

View File

@ -348,9 +348,6 @@ void menu_free(menu_handle_t *menu)
int menu_iterate(retro_input_t input,
retro_input_t old_input, retro_input_t trigger_input)
{
menu_display_t *disp = menu_display_get_ptr();
menu_animation_update_time(disp->animation);
menu_animation_update_time();
return menu_iterate_main(menu_input_frame(input, trigger_input));
}

View File

@ -617,10 +617,12 @@ void menu_animation_ticker_str(char *s, size_t len, uint64_t idx,
anim->is_active = true;
}
void menu_animation_update_time(menu_animation_t *anim)
void menu_animation_update_time(void)
{
static retro_time_t last_clock_update = 0;
settings_t *settings = config_get_ptr();
menu_display_t *disp = menu_display_get_ptr();
menu_animation_t *anim = disp->animation;
settings_t *settings = config_get_ptr();
anim->cur_time = rarch_get_time_usec();
anim->delta_time = anim->cur_time - anim->old_time;

View File

@ -153,7 +153,7 @@ void menu_animation_ticker_generic(uint64_t idx, int max_width,
menu_animation_t *menu_animation_get_ptr(void);
void menu_animation_update_time(menu_animation_t *anim);
void menu_animation_update_time(void);
#ifdef __cplusplus
}