mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
clutter-timeline: Emit the new-frame signal even on the first frame
ClutterTimeline has special handling for the first time do_tick is called which was not emitting a new-frame signal. This meant that an application which directly uses the timeline would have to manually setup the initial state of an animation after starting a timeline to avoid painting a single frame with the wrong state. It seems to make more sense to instead emit the new-frame signal so that the application always sees a new-frame when the progress changes before a paint.
This commit is contained in:
parent
b917285e24
commit
5c0aaf50a7
@ -1264,7 +1264,9 @@ _clutter_timeline_do_tick (ClutterTimeline *timeline,
|
||||
if (priv->waiting_first_tick)
|
||||
{
|
||||
priv->last_frame_time = tick_time;
|
||||
priv->msecs_delta = 0;
|
||||
priv->waiting_first_tick = FALSE;
|
||||
clutter_timeline_do_frame (timeline);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user