* clutter/clutter-timeline.c (clutter_timeline_get_progressx):

Changed to use clutter_qdiv instead of CLUTTER_FIXED_DIV otherwise
	it can't cope with timelines with more than 255 frames.
This commit is contained in:
Neil Roberts 2008-04-18 13:51:16 +00:00
parent 816aa93135
commit e97cba0162
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-04-18 Neil Roberts <neil@o-hand.com>
* clutter/clutter-timeline.c (clutter_timeline_get_progressx):
Changed to use clutter_qdiv instead of CLUTTER_FIXED_DIV otherwise
it can't cope with timelines with more than 255 frames.
2008-04-17 Emmanuele Bassi <ebassi@openedhand.com> 2008-04-17 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-frame-source.c: Small coding style fixes. * clutter/clutter-frame-source.c: Small coding style fixes.

View File

@ -1310,8 +1310,8 @@ clutter_timeline_get_progressx (ClutterTimeline *timeline)
priv = timeline->priv; priv = timeline->priv;
progress = CLUTTER_FIXED_DIV (CLUTTER_INT_TO_FIXED (priv->current_frame_num), progress = clutter_qdivx (CLUTTER_INT_TO_FIXED (priv->current_frame_num),
CLUTTER_INT_TO_FIXED (priv->n_frames)); CLUTTER_INT_TO_FIXED (priv->n_frames));
if (priv->direction == CLUTTER_TIMELINE_BACKWARD) if (priv->direction == CLUTTER_TIMELINE_BACKWARD)
progress = CFX_ONE - progress; progress = CFX_ONE - progress;