Krolyxon
Commit cd34aa2

Branches

Refs →

nsxivcd34aa2

Fixed slideshow delay corruption after GIF animation

Author
Bert Münnich
Date
2014-01-08 20:31 +0100
Parent
9a0bcd7
Commit
cd34aa2a6ba0d68482b38fbaa38789c21cfa07f3

+3 −2

2 files changed

  1. M Makefile +1 −1
  2. M main.c +2 −1
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20140104
1+VERSION = git-20140108
22
33 PREFIX = /usr/local
44 MANPREFIX = $(PREFIX)/share/man
M main.c View
@@ -400,7 +400,8 @@ void redraw(void)
400400 img_render(&img);
401401 if (img.ss.on) {
402402 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);
404405 set_timeout(slideshow, t, false);
405406 }
406407 } else {