Imported from libpng-1.4.0beta45.tar

This commit is contained in:
Glenn Randers-Pehrson
2008-12-09 06:11:59 -06:00
parent 5ca69e43ec
commit 65a0992f0d
62 changed files with 133 additions and 124 deletions

View File

@@ -1,7 +1,7 @@
/* pngwrite.c - general routines to write a PNG file
*
* Last changed in libpng 1.4.0 [December 6, 2008]
* Last changed in libpng 1.4.0 [December 9, 2008]
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1998-2008 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -1437,11 +1437,11 @@ png_write_png(png_structp png_ptr, png_infop info_ptr,
#endif
#if defined(PNG_WRITE_FILLER_SUPPORTED)
/* Get rid of filler (OR ALPHA) bytes, pack XRGB/RGBX/ARGB/RGBA into
* RGB (4 channels -> 3 channels). The second parameter is not used.
/* Pack XRGB/RGBX/ARGB/RGBA into * RGB (4 channels -> 3 channels).
*/
if (transforms & PNG_TRANSFORM_STRIP_FILLER)
png_set_filler(png_ptr, 0, PNG_FILLER_BEFORE);
if (!(png_ptr->transformations & PNG_TRANSFORM_STRIP_FILLER))
png_set_filler(png_ptr, 0, PNG_FILLER_BEFORE);
#endif
#if defined(PNG_WRITE_BGR_SUPPORTED)