From: Paul Eggert Date: Thu, 15 Oct 2015 17:51:25 +0000 (-0700) Subject: Fix animation timeout delay calculation X-Git-Tag: emacs-25.0.90~1116 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b4c00f9ac9d57eca8f2a4950fca6198065dbdcd0;p=emacs.git Fix animation timeout delay calculation * lisp/image.el (image-animate-timeout): Don’t assume speed is floating-point. --- diff --git a/lisp/image.el b/lisp/image.el index d557e39aac2..295b79f161d 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)