mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-05 07:38:15 +02:00
[animation] Use default event loop
This commit is contained in:
parent
0b763c61b4
commit
1b10da8890
3 changed files with 1 additions and 5 deletions
|
|
@ -294,16 +294,14 @@ ply_animation_load (ply_animation_t *animation)
|
|||
|
||||
bool
|
||||
ply_animation_start (ply_animation_t *animation,
|
||||
ply_event_loop_t *loop,
|
||||
ply_pixel_display_t *display,
|
||||
ply_trigger_t *stop_trigger,
|
||||
long x,
|
||||
long y)
|
||||
{
|
||||
assert (animation != NULL);
|
||||
assert (animation->loop == NULL);
|
||||
|
||||
animation->loop = loop;
|
||||
animation->loop = ply_event_loop_get_default ();
|
||||
animation->display = display;
|
||||
animation->stop_trigger = stop_trigger;
|
||||
animation->is_stopped = false;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ void ply_animation_free (ply_animation_t *animation);
|
|||
|
||||
bool ply_animation_load (ply_animation_t *animation);
|
||||
bool ply_animation_start (ply_animation_t *animation,
|
||||
ply_event_loop_t *loop,
|
||||
ply_pixel_display_t *display,
|
||||
ply_trigger_t *stop_trigger,
|
||||
long x,
|
||||
|
|
|
|||
|
|
@ -290,7 +290,6 @@ view_start_end_animation (view_t *view,
|
|||
y = plugin->animation_vertical_alignment * screen_height - height / 2.0;
|
||||
|
||||
ply_animation_start (view->end_animation,
|
||||
plugin->loop,
|
||||
view->display,
|
||||
trigger, x, y);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue