1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

wrlib: Fixed warning msg using libpng

Call png_set_interlace_handling() to get rid of the warning message "libpng warning: Interlace handling should be turned on when using png_read_image"
This commit is contained in:
David Maciejak
2020-03-28 00:10:18 +08:00
committed by Carlos R. Mafra
parent 909deea70c
commit a215869067

View File

@@ -150,6 +150,9 @@ RImage *RLoadPNG(RContext *context, const char *file)
else
png_set_gamma(png, sgamma, 0.45);
/* do not remove, required for png_read_update_info */
png_set_interlace_handling(png);
/* do the transforms */
png_read_update_info(png, pinfo);