From b94d24eb25e6227a6bb386ca65119444f65a3d97 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 21 Jan 2011 22:17:18 -0600 Subject: [master] Changed argument of png_get_io_ptr() back to png_struct because we promised not to change its signature, so it can be used safely in configure scripts to detect libpng. --- pngrtran.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pngrtran.c') diff --git a/pngrtran.c b/pngrtran.c index 36c334802..a475f9a9a 100644 --- a/pngrtran.c +++ b/pngrtran.c @@ -2290,7 +2290,7 @@ png_do_rgb_to_gray(png_structp png_ptr, png_row_infop row_info, png_bytep row) png_debug(1, "in png_do_rgb_to_gray"); - if ( + if (!(row_info->color_type & PNG_COLOR_MASK_PALETTE) && (row_info->color_type & PNG_COLOR_MASK_COLOR)) { png_uint_32 rc = png_ptr->rgb_to_gray_red_coeff; -- cgit v1.2.1