aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'image.c')
-rw-r--r--image.c9
1 files changed, 5 insertions, 4 deletions
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.) */