[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Use floating point arithmetic to allow fading faster than 1s. See https://git.mate-desktop.org/mate-screensaver/commit/?id=3eb44db74e80fc18f9e53793c85fb1c9ebdfa106

noreply at xfce.org noreply at xfce.org
Sun Nov 11 18:12:42 CET 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 0ce7fc71c7b49a3c9bd2f196e7ed80398443e6ab
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sun Nov 11 12:11:56 2018 -0500

    Use floating point arithmetic to allow fading faster than 1s.
    See https://git.mate-desktop.org/mate-screensaver/commit/?id=3eb44db74e80fc18f9e53793c85fb1c9ebdfa106
---
 src/gs-fade.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gs-fade.c b/src/gs-fade.c
index e62762b..43cb015 100644
--- a/src/gs-fade.c
+++ b/src/gs-fade.c
@@ -682,7 +682,7 @@ gs_fade_start (GSFade *fade,
     if (active_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;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list