summaryrefslogtreecommitdiff
path: root/src/gs-fade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-fade.c')
-rw-r--r--src/gs-fade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gs-fade.c b/src/gs-fade.c
index 156d7e2..8e9a858 100644
--- a/src/gs-fade.c
+++ b/src/gs-fade.c
@@ -755,7 +755,7 @@ gs_fade_start (GSFade *fade,
{
guint num_steps;
- num_steps = (fade->priv->timeout / 1000) * steps_per_sec;
+ num_steps = (fade->priv->timeout / 1000.0) * steps_per_sec;
msecs_per_step = 1000 / steps_per_sec;
fade->priv->alpha_per_iter = 1.0 / (gdouble)num_steps;