state-machine: use clutter_timeline_get_progress
authorØyvind Kolås <pippin@linux.intel.com>
Thu, 20 May 2010 14:41:29 +0000 (15:41 +0100)
committerØyvind Kolås <pippin@linux.intel.com>
Thu, 20 May 2010 15:24:29 +0000 (16:24 +0100)
clutter/clutter-state.c

index 520c0b5..426db03 100644 (file)
@@ -341,7 +341,7 @@ static void clutter_state_new_frame (ClutterTimeline *timeline,
   if (state->priv->current_animator)
     return;
 
-  progress  = 1.0 * msecs / clutter_timeline_get_duration (timeline);
+  progress = clutter_timeline_get_progress (timeline);
 
   for (k = state->priv->target_state->keys; k; k = k->next)
     {