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

rearranged arithemetic to allow specifying duration with sub second
precision (also enables durations smaller than one second).
This commit is contained in:
Øyvind Kolås 2007-10-18 13:47:21 +00:00
parent 7d221b2ef1
commit 373da11329
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-10-18 Øyvind Kolås <pippin@o-hand.com>
* clutter/clutter-timeline.c: (clutter_timeline_set_duration):
rearranged arithemetic to allow specifying duration with sub second
precision (also enables durations smaller than one second).
2007-10-18 Emmanuele Bassi <ebassi@openedhand.com> 2007-10-18 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-script-private.h: * clutter/clutter-script-private.h:

View File

@ -1044,8 +1044,7 @@ clutter_timeline_set_duration (ClutterTimeline *timeline,
priv->duration = msecs; priv->duration = msecs;
priv->n_frames = priv->duration / 1000 priv->n_frames = priv->duration * priv->fps / 1000;
* priv->fps;
g_object_notify (G_OBJECT (timeline), "num-frames"); g_object_notify (G_OBJECT (timeline), "num-frames");
g_object_notify (G_OBJECT (timeline), "duration"); g_object_notify (G_OBJECT (timeline), "duration");