diff options
author | NRK <nrk@disroot.org> | 2022-07-02 17:06:24 +0200 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2023-03-11 13:36:26 +0100 |
commit | 2434e83807360bfe43e3c404be12438f00a894ab (patch) | |
tree | 75e863131b1e5b4c55d6d2b4256bbdb84e0ddaa2 /image.c | |
parent | 8c876199b1a7ce3d136809c7149dde91a51be3e8 (diff) | |
download | nsxiv-2434e83807360bfe43e3c404be12438f00a894ab.tar.zst |
make some changes prepping for clang-format
Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -282,8 +282,9 @@ static bool img_load_gif(img_t *img, const fileinfo_t *file) if (i < y || i >= y + h || j < x || j >= x + w || rows[i-y][j-x] == transp) { - if (prev_frame != NULL && (prev_disposal != 2 || - i < py || i >= py + ph || j < px || j >= px + pw)) + if (prev_frame != NULL && + (prev_disposal != 2 || i < py || i >= py + ph || + j < px || j >= px + pw)) { *ptr = prev_frame[i * sw + j]; } else { @@ -412,8 +413,8 @@ static bool img_load_webp(img_t *img, const fileinfo_t *file) /* Load and decode frames (also works on images with only 1 frame) */ m->length = m->cnt = m->sel = 0; while (WebPAnimDecoderGetNext(dec, &buf, &ts)) { - im = imlib_create_image_using_copied_data( - info.canvas_width, info.canvas_height, (uint32_t *)buf); + im = imlib_create_image_using_copied_data(info.canvas_width, info.canvas_height, + (uint32_t *)buf); imlib_context_set_image(im); imlib_image_set_format("webp"); /* Get an iterator of this frame - used for frame info (duration, etc.) */ |