mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
* 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:
parent
816aa93135
commit
e97cba0162
@ -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>
|
||||
|
||||
* clutter/clutter-frame-source.c: Small coding style fixes.
|
||||
|
@ -1310,8 +1310,8 @@ clutter_timeline_get_progressx (ClutterTimeline *timeline)
|
||||
|
||||
priv = timeline->priv;
|
||||
|
||||
progress = CLUTTER_FIXED_DIV (CLUTTER_INT_TO_FIXED (priv->current_frame_num),
|
||||
CLUTTER_INT_TO_FIXED (priv->n_frames));
|
||||
progress = clutter_qdivx (CLUTTER_INT_TO_FIXED (priv->current_frame_num),
|
||||
CLUTTER_INT_TO_FIXED (priv->n_frames));
|
||||
|
||||
if (priv->direction == CLUTTER_TIMELINE_BACKWARD)
|
||||
progress = CFX_ONE - progress;
|
||||
|
Loading…
Reference in New Issue
Block a user