From 9bb664eef4345bbc3ec83faf3820304c7664fd6b Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Tue, 27 May 2008 16:08:41 -0700 Subject: embarrassing --- src/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3