Added command to toggle gif animations

This commit is contained in:
Bert
2011-08-19 18:46:17 +02:00
parent 8b3ae5027e
commit bb577d274d
5 changed files with 38 additions and 18 deletions

8
main.c
View File

@ -142,8 +142,12 @@ void load_image(int new) {
else
filesize = 0;
if (img.multi.cnt && img.multi.animate)
timo_adelay = img.multi.frames[img.multi.sel].delay;
if (img.multi.cnt) {
if (img.multi.animate)
timo_adelay = img.multi.frames[img.multi.sel].delay;
else
timo_adelay = 0;
}
}
void update_title() {