aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
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 {