Simplified img_frame_animate

This commit is contained in:
Bert Münnich
2014-09-01 20:41:27 +02:00
parent 95a7496edc
commit 2fbc21a205
4 changed files with 8 additions and 13 deletions

View File

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