diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-01-08 20:31:07 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-01-08 20:31:07 +0100 |
commit | cd34aa2a6ba0d68482b38fbaa38789c21cfa07f3 (patch) | |
tree | bd3cc3210a7dd91fda429ccf321024f1681db3f8 | |
parent | 9a0bcd7025ee1ba9eb32503c86e03a3db166484e (diff) |
Fixed slideshow delay corruption after GIF animation
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | main.c | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -VERSION = git-20140104 +VERSION = git-20140108 PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man @@ -400,7 +400,8 @@ void redraw(void) img_render(&img); if (img.ss.on) { t = img.ss.delay * 1000; - t = img.multi.animate ? MAX(t, img.multi.length) : t; + if (img.multi.cnt > 0 && img.multi.animate) + t = MAX(t, img.multi.length); set_timeout(slideshow, t, false); } } else { |