aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-05-27 16:08:41 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-05-27 16:08:41 -0700
commit9bb664eef4345bbc3ec83faf3820304c7664fd6b (patch)
tree363bb502aa0cd472242cf12aa6402ae83c257d59 /src
parent303b0bc49f9fa99d061bb149006bbfd327a394ca (diff)
downloadmirror-meh-9bb664eef4345bbc3ec83faf3820304c7664fd6b.tar.gz
mirror-meh-9bb664eef4345bbc3ec83faf3820304c7664fd6b.tar.bz2
mirror-meh-9bb664eef4345bbc3ec83faf3820304c7664fd6b.zip
embarrassing
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);
}