aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.c b/main.c
index 3e2f353..6545cfb 100644
--- a/main.c
+++ b/main.c
@@ -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() {