diff options
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -234,7 +234,8 @@ static bool img_load_multiframe(img_t *img, const fileinfo_t *file) imlib_context_set_blend(!!(finfo.frame_flags & IMLIB_FRAME_BLEND)); imlib_blend_image_onto_image(frame, has_alpha, 0, 0, sw, sh, sx, sy, sw, sh); m->frames[m->cnt].im = canvas; - m->frames[m->cnt].delay = finfo.frame_delay ? finfo.frame_delay : DEF_ANIM_DELAY; + m->frames[m->cnt].delay = m->framedelay ? m->framedelay : + (finfo.frame_delay ? finfo.frame_delay : DEF_ANIM_DELAY); m->length += m->frames[m->cnt].delay; m->cnt++; img_free(frame, false); |