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:
Neil Roberts 2011-01-24 11:29:59 +00:00
parent b917285e24
commit 5c0aaf50a7

View File

@ -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
{