emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master b4c00f9: Fix animation timeout delay calculation


From: Paul Eggert
Subject: [Emacs-diffs] master b4c00f9: Fix animation timeout delay calculation
Date: Thu, 15 Oct 2015 17:52:10 +0000

branch: master
commit b4c00f9ac9d57eca8f2a4950fca6198065dbdcd0
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Fix animation timeout delay calculation
    
    * lisp/image.el (image-animate-timeout):
    Don’t assume speed is floating-point.
---
 lisp/image.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/image.el b/lisp/image.el
index d557e39..295b79f 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -735,7 +735,7 @@ for the animation speed.  A negative value means to animate 
in reverse."
           ;; Subtract off the time we took to load the image from the
           ;; stated delay time.
           (delay (max (+ (* (or (cdr animation) image-default-frame-delay)
-                            (/ 1 (abs speed)))
+                            (/ 1.0 (abs speed)))
                          time (- (float-time)))
                       image-minimum-frame-delay))
           done)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]