This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit 75657f0362d1068c8f744a899b05e00414db01d3
Author: Kim Woelders <[email protected]>
AuthorDate: Sat Oct 8 23:33:49 2022 +0200
PNG loader: Cosmetics
---
src/modules/loaders/loader_png.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/modules/loaders/loader_png.c b/src/modules/loaders/loader_png.c
index 6faf989..d8d109c 100644
--- a/src/modules/loaders/loader_png.c
+++ b/src/modules/loaders/loader_png.c
@@ -2,6 +2,7 @@
#include "Imlib2_Loader.h"
#include <png.h>
+#include <stdbool.h>
#include <arpa/inet.h>
#define DBG_PFX "LDR-png"
@@ -300,7 +301,8 @@ _load(ImlibImage * im, int load_data)
const png_chunk_t *chunk;
const png_fctl_t *pfctl;
unsigned int len, val;
- int w, h, frame, save_fdat;
+ int w, h, frame;
+ bool save_fdat;
png_chunk_t cbuf;
/* read header */
@@ -408,7 +410,7 @@ _load(ImlibImage * im, int load_data)
scan_done:
/* Now feed data into libpng to extract requested frame */
- save_fdat = 0;
+ save_fdat = false;
/* At this point we start "progressive" PNG data processing */
fptr = (unsigned char *)im->fi->fdata;
@@ -490,7 +492,7 @@ _load(ImlibImage * im, int load_data)
* the frame's first fdAT chunk */
fptr = (unsigned char *)ctx.pch_fctl;
len = htonl(ctx.pch_fctl->hdr.len);
- save_fdat = 1; /* Save fdAT's as of now (until next fcTL) */
+ save_fdat = true; /* Save fdAT's as of now (until next fcTL) */
continue;
case PNG_TYPE_acTL:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.