[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.
This commit is contained in:
Glenn Randers-Pehrson
2011-01-21 22:17:18 -06:00
parent 379d0160ea
commit b94d24eb25
5 changed files with 16 additions and 14 deletions

View File

@@ -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;