mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
* 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:
parent
7d221b2ef1
commit
373da11329
@ -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:
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user