Fixed slideshow delay corruption after GIF animation
This commit is contained in:
parent
9a0bcd7025
commit
cd34aa2a6b
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
VERSION = git-20140104
|
VERSION = git-20140108
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
|
3
main.c
3
main.c
|
@ -400,7 +400,8 @@ void redraw(void)
|
||||||
img_render(&img);
|
img_render(&img);
|
||||||
if (img.ss.on) {
|
if (img.ss.on) {
|
||||||
t = img.ss.delay * 1000;
|
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);
|
set_timeout(slideshow, t, false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue