From: Neil Roberts Date: Mon, 24 Jan 2011 11:29:59 +0000 (+0000) Subject: clutter-timeline: Emit the new-frame signal even on the first frame X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c0aaf50a7b3d1914d4580d5f853faa9a4b10f73;p=profile%2Fivi%2Fclutter.git 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. --- diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c index 165e2c5..a2db02f 100644 --- a/clutter/clutter-timeline.c +++ b/clutter/clutter-timeline.c @@ -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 {