Imported from libpng-1.4.0beta6.tar

This commit is contained in:
Glenn Randers-Pehrson
2006-06-02 05:31:20 -05:00
parent 73b064c2af
commit f46918d129
49 changed files with 158 additions and 1064 deletions

View File

@@ -200,7 +200,7 @@ void read_png(FILE *fp, unsigned int sig_read) /* file is already open */
/* Expand paletted colors into true RGB triplets */
if (color_type == PNG_COLOR_TYPE_PALETTE)
png_set_palette_rgb(png_ptr);
png_set_palette_to_rgb(png_ptr);
/* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */
if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)