From cd34aa2a6ba0d68482b38fbaa38789c21cfa07f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Wed, 8 Jan 2014 20:31:07 +0100 Subject: [PATCH] Fixed slideshow delay corruption after GIF animation --- Makefile | 2 +- main.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 482a0b2..d9de323 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = git-20140104 +VERSION = git-20140108 PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man diff --git a/main.c b/main.c index 8094265..a46cc8a 100644 --- a/main.c +++ b/main.c @@ -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 {