From 373da11329883785668b0d0c60127d8489d6e7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Thu, 18 Oct 2007 13:47:21 +0000 Subject: [PATCH] * 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). --- ChangeLog | 6 ++++++ clutter/clutter-timeline.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 31fbcf459..9306dfc6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-10-18 Øyvind Kolås + + * 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 * clutter/clutter-script-private.h: diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c index 51a25d2e7..9fc6a1637 100644 --- a/clutter/clutter-timeline.c +++ b/clutter/clutter-timeline.c @@ -1044,8 +1044,7 @@ clutter_timeline_set_duration (ClutterTimeline *timeline, priv->duration = msecs; - priv->n_frames = priv->duration / 1000 - * priv->fps; + priv->n_frames = priv->duration * priv->fps / 1000; g_object_notify (G_OBJECT (timeline), "num-frames"); g_object_notify (G_OBJECT (timeline), "duration");