From bb577d274dbd9981a726092a504466bc9b5c9bdb Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 19 Aug 2011 18:46:17 +0200 Subject: Added command to toggle gif animations --- main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'main.c') 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() { -- cgit v1.2.3