nsxivcd34aa2
Fixed slideshow delay corruption after GIF animation
+3 −2
2 files changed
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION = git-20140104 | |
| 1 | + | VERSION = git-20140108 | |
| 2 | 2 | ||
| 3 | 3 | PREFIX = /usr/local | |
| 4 | 4 | MANPREFIX = $(PREFIX)/share/man | |
| @@ -400,7 +400,8 @@ void redraw(void) | |||
| 400 | 400 | img_render(&img); | |
| 401 | 401 | if (img.ss.on) { | |
| 402 | 402 | t = img.ss.delay * 1000; | |
| 403 | − | t = img.multi.animate ? MAX(t, img.multi.length) : t; | |
| 403 | + | if (img.multi.cnt > 0 && img.multi.animate) | |
| 404 | + | t = MAX(t, img.multi.length); | |
| 404 | 405 | set_timeout(slideshow, t, false); | |
| 405 | 406 | } | |
| 406 | 407 | } else { | |