Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Fix issue caused by deprecated function #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src-IL/src/il_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down