summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-08-19 18:46:17 +0200
committerBert <ber.t@gmx.com>2011-08-19 18:46:17 +0200
commitbb577d274dbd9981a726092a504466bc9b5c9bdb (patch)
treef3bbf611ddd904f80dfe20bb4d1171d1dc45ed3d /main.c
parent8b3ae5027e9490bd7edfeea3d3cd2fbc5ec4beaf (diff)
downloadnsxiv-bb577d274dbd9981a726092a504466bc9b5c9bdb.tar.zst
Added command to toggle gif animations
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() {