]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix animation timeout delay calculation
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Oct 2015 17:51:25 +0000 (10:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Oct 2015 17:52:00 +0000 (10:52 -0700)
* lisp/image.el (image-animate-timeout):
Don’t assume speed is floating-point.

lisp/image.el

index d557e39aac28b151713eb71082bbe7694f960fb4..295b79f161d99f6e35eef2c97638652b6437efe3 100644 (file)
@@ -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)