|
|
@@ -290,13 +290,14 @@ bool ci_toggle_animation(arg_t a) |
|
|
|
{ |
|
|
|
bool dirty = false; |
|
|
|
|
|
|
|
img.multi.animate = !img.multi.animate; |
|
|
|
|
|
|
|
if (img.multi.animate) { |
|
|
|
dirty = img_frame_animate(&img, true); |
|
|
|
set_timeout(animate, img.multi.frames[img.multi.sel].delay, true); |
|
|
|
} else { |
|
|
|
reset_timeout(animate); |
|
|
|
if (img.multi.cnt > 0) { |
|
|
|
img.multi.animate = !img.multi.animate; |
|
|
|
if (img.multi.animate) { |
|
|
|
dirty = img_frame_animate(&img, true); |
|
|
|
set_timeout(animate, img.multi.frames[img.multi.sel].delay, true); |
|
|
|
} else { |
|
|
|
reset_timeout(animate); |
|
|
|
} |
|
|
|
} |
|
|
|
return dirty; |
|
|
|
} |
|
|
|