mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Cleanups
This commit is contained in:
parent
f6f306903c
commit
e424d432a2
@ -294,7 +294,7 @@ static float easing_out_in_bounce(float t, float b, float c, float d)
|
|||||||
static int menu_animation_iterate(menu_animation_t *anim,
|
static int menu_animation_iterate(menu_animation_t *anim,
|
||||||
unsigned idx, float dt, unsigned *active_tweens)
|
unsigned idx, float dt, unsigned *active_tweens)
|
||||||
{
|
{
|
||||||
struct tween *tween = anim ? &anim->list[idx] : NULL;
|
struct tween *tween = &anim->list[idx];
|
||||||
|
|
||||||
if (!tween || !tween->alive)
|
if (!tween || !tween->alive)
|
||||||
return -1;
|
return -1;
|
||||||
@ -661,8 +661,11 @@ bool menu_animation_ctl(enum menu_animation_ctl_state state, void *data)
|
|||||||
if (!dt)
|
if (!dt)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for(i = 0; i < anim->size; i++)
|
if (anim)
|
||||||
menu_animation_iterate(anim, i, *dt, &active_tweens);
|
{
|
||||||
|
for(i = 0; i < anim->size; i++)
|
||||||
|
menu_animation_iterate(anim, i, *dt, &active_tweens);
|
||||||
|
}
|
||||||
|
|
||||||
if (!active_tweens)
|
if (!active_tweens)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user