diff options
author | John Hawthorn <jhawthor@uvic.ca> | 2008-05-27 16:08:41 -0700 |
---|---|---|
committer | John Hawthorn <jhawthor@uvic.ca> | 2008-05-27 16:08:41 -0700 |
commit | 9bb664eef4345bbc3ec83faf3820304c7664fd6b (patch) | |
tree | 363bb502aa0cd472242cf12aa6402ae83c257d59 | |
parent | 303b0bc49f9fa99d061bb149006bbfd327a394ca (diff) | |
download | mirror-meh-9bb664eef4345bbc3ec83faf3820304c7664fd6b.tar.gz mirror-meh-9bb664eef4345bbc3ec83faf3820304c7664fd6b.tar.bz2 mirror-meh-9bb664eef4345bbc3ec83faf3820304c7664fd6b.zip |
embarrassing
-rw-r--r-- | src/png.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |