mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
Cleanups pt. 2
This commit is contained in:
parent
c222b20ec1
commit
b09f43ab3a
@ -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));
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user