From 2434e83807360bfe43e3c404be12438f00a894ab Mon Sep 17 00:00:00 2001 From: NRK Date: Sat, 2 Jul 2022 21:06:24 +0600 Subject: make some changes prepping for clang-format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Berke Kocaoğlu --- image.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'image.c') diff --git a/image.c b/image.c index cded0fe..2f5d697 100644 --- a/image.c +++ b/image.c @@ -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.) */ -- cgit v1.2.3-54-g00ecf