mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(menu_animation) Fix missing menu_animation_kill_by_subject() definition
This commit is contained in:
parent
1239b56d8a
commit
b96ce78b3e
@ -278,6 +278,29 @@ void menu_animation_free(menu_animation_t *anim)
|
||||
free(anim);
|
||||
}
|
||||
|
||||
void menu_animation_kill_by_subject(menu_animation_t *animation, size_t count, const void *subjects)
|
||||
{
|
||||
unsigned i, j, killed = 0;
|
||||
float **sub = (float**)subjects;
|
||||
|
||||
for (i = 0; i < animation->size; ++i)
|
||||
{
|
||||
if (!animation->list[i].alive)
|
||||
continue;
|
||||
|
||||
for (j = 0; j < count; ++j)
|
||||
{
|
||||
if (animation->list[i].subject == sub[j])
|
||||
{
|
||||
animation->list[i].alive = 0;
|
||||
animation->list[i].subject = NULL;
|
||||
killed++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool menu_animation_push(
|
||||
menu_animation_t *anim,
|
||||
float duration,
|
||||
|
Loading…
x
Reference in New Issue
Block a user