mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 02:38:11 +00:00
(menu_animation) Simplify menu_animation_iterate()
This commit is contained in:
parent
e6a2c3102d
commit
4734e0aa85
@ -458,15 +458,12 @@ static int menu_animation_iterate(
|
||||
float dt,
|
||||
unsigned *active_tweens)
|
||||
{
|
||||
if (!tween || !tween->alive)
|
||||
return -1;
|
||||
if (tween->running_since >= tween->duration)
|
||||
if (!tween->alive)
|
||||
return -1;
|
||||
|
||||
tween->running_since += dt;
|
||||
|
||||
if (tween->easing)
|
||||
*tween->subject = tween->easing(
|
||||
*tween->subject = tween->easing(
|
||||
tween->running_since,
|
||||
tween->initial_value,
|
||||
tween->target_value - tween->initial_value,
|
||||
|
Loading…
Reference in New Issue
Block a user