aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/png.c b/src/png.c
index b814fc4..0dac9b5 100644
--- a/src/png.c
+++ b/src/png.c
@@ -43,7 +43,7 @@ unsigned char *loadpng(FILE *infile, int *bufwidth, int *bufheight){
png_set_strip_alpha(png_ptr);
if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
png_set_gray_to_rgb(png_ptr);
- if(png_get_interlace_type == PNG_INTERLACE_ADAM7)
+ if(png_get_interlace_type(png_ptr, info_ptr) == PNG_INTERLACE_ADAM7)
numpasses = png_set_interlace_handling(png_ptr);
png_read_update_info(png_ptr, info_ptr);
}