[master] Removed a harmless extra png_set_invert_alpha()
from pngwrite.c
This commit is contained in:
parent
b7a9d80f28
commit
948c6ee88d
5
ANNOUNCE
5
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.2.41beta09 - October 30, 2009
|
Libpng 1.2.41beta09 - October 31, 2009
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -84,7 +84,8 @@ version 1.2.41beta08 [October 30, 2009]
|
|||||||
Relocated png_do_chop() ahead of building gamma tables in pngrtran.c
|
Relocated png_do_chop() ahead of building gamma tables in pngrtran.c
|
||||||
This avoids building 16-bit gamma tables unnecessarily.
|
This avoids building 16-bit gamma tables unnecessarily.
|
||||||
|
|
||||||
version 1.2.41beta09 [October 30, 2009]
|
version 1.2.41beta09 [October 31, 2009]
|
||||||
|
Removed a harmless extra png_set_invert_alpha() from pngwrite.c
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
|
|
||||||
|
5
CHANGES
5
CHANGES
@ -2466,7 +2466,7 @@ version 1.2.40beta01 [August 20, 2009]
|
|||||||
version 1.2.40rc01 [September 2, 2009]
|
version 1.2.40rc01 [September 2, 2009]
|
||||||
Various bugfixes and improvements to CMakeLists.txt (Philip Lowman)
|
Various bugfixes and improvements to CMakeLists.txt (Philip Lowman)
|
||||||
|
|
||||||
version 1.2.40 and 1.0.49 [October 30, 2009]
|
version 1.2.40 and 1.0.49 [October 31, 2009]
|
||||||
No changes.
|
No changes.
|
||||||
|
|
||||||
version 1.0.50 [September 10, 2009]
|
version 1.0.50 [September 10, 2009]
|
||||||
@ -2514,7 +2514,8 @@ version 1.2.41beta08 [October 30, 2009]
|
|||||||
Relocated png_do_chop() ahead of building gamma tables in pngrtran.c
|
Relocated png_do_chop() ahead of building gamma tables in pngrtran.c
|
||||||
This avoids building 16-bit gamma tables unnecessarily.
|
This avoids building 16-bit gamma tables unnecessarily.
|
||||||
|
|
||||||
version 1.2.41beta09 [October 30, 2009]
|
version 1.2.41beta09 [October 31, 2009]
|
||||||
|
Removed a harmless extra png_set_invert_alpha() from pngwrite.c
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwrite.c - general routines to write a PNG file
|
/* pngwrite.c - general routines to write a PNG file
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.2.41 [October 30, 2009]
|
* Last changed in libpng 1.2.41 [October 31, 2009]
|
||||||
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -1565,12 +1565,6 @@ png_write_png(png_structp png_ptr, png_infop info_ptr,
|
|||||||
png_set_packswap(png_ptr);
|
png_set_packswap(png_ptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_WRITE_INVERT_ALPHA_SUPPORTED
|
|
||||||
/* Invert the alpha channel from opacity to transparency */
|
|
||||||
if (transforms & PNG_TRANSFORM_INVERT_ALPHA)
|
|
||||||
png_set_invert_alpha(png_ptr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PNG_WRITE_INVERT_ALPHA_SUPPORTED
|
#ifdef PNG_WRITE_INVERT_ALPHA_SUPPORTED
|
||||||
/* Invert the alpha channel from opacity to transparency */
|
/* Invert the alpha channel from opacity to transparency */
|
||||||
if (transforms & PNG_TRANSFORM_INVERT_ALPHA)
|
if (transforms & PNG_TRANSFORM_INVERT_ALPHA)
|
||||||
|
Reference in New Issue
Block a user