diff options
author | Bert <ber.t@gmx.com> | 2011-08-19 18:46:17 +0200 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-08-19 18:46:17 +0200 |
commit | bb577d274dbd9981a726092a504466bc9b5c9bdb (patch) | |
tree | f3bbf611ddd904f80dfe20bb4d1171d1dc45ed3d /main.c | |
parent | 8b3ae5027e9490bd7edfeea3d3cd2fbc5ec4beaf (diff) |
Added command to toggle gif animations
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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() { |