[timeline] Don't clamp the elapsed time when a looping tl reaches the end
authorNeil Roberts <neil@linux.intel.com>
Wed, 10 Jun 2009 16:41:16 +0000 (17:41 +0100)
committerNeil Roberts <neil@linux.intel.com>
Wed, 10 Jun 2009 16:47:33 +0000 (17:47 +0100)
commit9c5663d6717722d6d77162060f284355b5081174
tree8543e18e34113964a83f96e0914e20386a575742
parentacf7722a41dc5c568f895166cc471f53f3546926
[timeline] Don't clamp the elapsed time when a looping tl reaches the end

The new-frame signal of a timeline was previously guaranteed to be
emitted with the elapsed_time set to the end before it emits the
completed signal. This doesn't necessarily make sense for looping
timelines because it would cause the elapsed time to be clamped to a
slightly off value whenever the timeline restarts. This patch makes it
perform the wrap around before emitting the new-frame signal so that
the elapsed time always corresponds to the time elapsed since the
timeline was started.

Additionally it no longer fudges the msecs_delta property to make the
marker check work so clutter_timeline_get_delta will always return the
wall clock time since the last frame.
clutter/clutter-timeline.c
tests/conform/test-timeline-interpolate.c