From b4c00f9ac9d57eca8f2a4950fca6198065dbdcd0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 15 Oct 2015 10:51:25 -0700 Subject: [PATCH] Fix animation timeout delay calculation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * lisp/image.el (image-animate-timeout): Don’t assume speed is floating-point. --- lisp/image.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2