Change menu_animation_update returntype to bool

This commit is contained in:
twinaphex 2015-03-12 19:29:43 +01:00
parent a4d9d59d2b
commit 6694d813e3
2 changed files with 5 additions and 3 deletions

View File

@ -434,7 +434,7 @@ static int menu_animation_iterate(struct tween *tween, float dt,
return 0; return 0;
} }
void menu_animation_update(animation_t *animation, float dt) bool menu_animation_update(animation_t *animation, float dt)
{ {
unsigned i; unsigned i;
unsigned active_tweens = 0; unsigned active_tweens = 0;
@ -445,10 +445,12 @@ void menu_animation_update(animation_t *animation, float dt)
if (!active_tweens) if (!active_tweens)
{ {
animation->size = 0; animation->size = 0;
return; return false;
} }
g_runloop.frames.video.current.menu.animation.is_active = true; g_runloop.frames.video.current.menu.animation.is_active = true;
return true;
} }
/** /**

View File

@ -100,7 +100,7 @@ bool menu_animation_push(animation_t *animation, float duration,
float target_value, float* subject, float target_value, float* subject,
enum animation_easing_type easing_enum, tween_cb cb); enum animation_easing_type easing_enum, tween_cb cb);
void menu_animation_update(animation_t *animation, float dt); bool menu_animation_update(animation_t *animation, float dt);
/** /**
* menu_animation_ticker_line: * menu_animation_ticker_line: