summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-10-25 06:56:22 -0400
committerGitHub <[email protected]>2018-10-25 06:56:22 -0400
commitb3a5764750b6f70aa2fcb829fdfebbfc0a586df0 (patch)
tree2506f15cd4ccbbf5475a68f6a21461fc93c749fe
parent43cfc3b3d4d12846b8f81b209938898df742243a (diff)
parent3eb44db74e80fc18f9e53793c85fb1c9ebdfa106 (diff)
downloadmate-screensaver-b3a5764750b6f70aa2fcb829fdfebbfc0a586df0.tar.bz2
mate-screensaver-b3a5764750b6f70aa2fcb829fdfebbfc0a586df0.tar.xz
Merge pull request #169 from mate-desktop/backport
fade: fix fade computation math
-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;