From 3407792d3e2d2b537a960dcb3183d403cb301b8b Mon Sep 17 00:00:00 2001 From: CirkuitBreaker Date: Sat, 13 Jul 2019 21:32:37 -0400 Subject: [PATCH] Fix issue caused by deprecated function "The function png_set_gray_1_2_4_to_8() was removed. It has been deprecated since libpng-1.0.18 and 1.2.9, when it was replaced with png_set_expand_gray_1_2_4_to_8() because the former function also expanded palette images." --- src-IL/src/il_png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-IL/src/il_png.c b/src-IL/src/il_png.c index d5b627e..d5fe363 100644 --- a/src-IL/src/il_png.c +++ b/src-IL/src/il_png.c @@ -278,7 +278,7 @@ ILboolean readpng_get_image(ILdouble display_exponent) // Expand low-bit-depth grayscale images to 8 bits if (png_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { - png_set_gray_1_2_4_to_8(png_ptr); + png_set_expand_gray_1_2_4_to_8(png_ptr); } // Expand RGB images with transparency to full alpha channels