[devel] Updated comments that mention 1.5.3; changed them to 1.5.4.

This commit is contained in:
Glenn Randers-Pehrson
2011-06-15 12:58:27 -05:00
parent b0791f75ad
commit ef217b76a3
12 changed files with 46 additions and 42 deletions

View File

@@ -1292,6 +1292,9 @@ png_read_png(png_structp png_ptr, png_infop info_ptr,
if (transforms & PNG_TRANSFORM_STRIP_16)
png_set_strip_16(png_ptr);
# ifdef PNG_READ_CHOP_16_TO_8_SUPPORTED
/* Added at libpng-1.5.4. "chop_16" produces the same result that "strip_16"
* did in earlier versions, while "strip_16" is now more accurate.
*/
else
if (transforms & PNG_TRANSFORM_CHOP_16)
png_set_chop_16(png_ptr);
@@ -1392,7 +1395,7 @@ png_read_png(png_structp png_ptr, png_infop info_ptr,
png_set_gray_to_rgb(png_ptr);
#endif
/* Added at libpng-1.5.3 */
/* Added at libpng-1.5.4 */
#ifdef PNG_READ_EXPAND_16_SUPPORTED
if (transforms & PNG_TRANSFORM_EXPAND_16)
png_set_expand_16(png_ptr);