mirror of
https://codeberg.org/nsxiv/nsxiv
synced 2024-11-15 12:13:10 +00:00
fix: -A not working (#503)
the imlib2 based multi-frame loader has not respected -A setting
since it's introduction in commit 76c2b81b
.
also change multi.framedelay to `int` to avoid signedness change
warning.
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/503
Reviewed-by: eylles <eylles@noreply.codeberg.org>
This commit is contained in:
parent
faf67fcc62
commit
36d5b27fff
3
image.c
3
image.c
@ -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_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);
|
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].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->length += m->frames[m->cnt].delay;
|
||||||
m->cnt++;
|
m->cnt++;
|
||||||
img_free(frame, false);
|
img_free(frame, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user