From 948c6ee88da4971096b970c84af0362a316d5cd0 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sat, 31 Oct 2009 12:28:23 -0500 Subject: [PATCH] [master] Removed a harmless extra png_set_invert_alpha() from pngwrite.c --- ANNOUNCE | 5 +++-- CHANGES | 5 +++-- pngwrite.c | 8 +------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index b5e71907..edac16df 100644 --- a/ANNOUNCE +++ b/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 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 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 diff --git a/CHANGES b/CHANGES index 812c74ab..6c1b3c81 100644 --- a/CHANGES +++ b/CHANGES @@ -2466,7 +2466,7 @@ version 1.2.40beta01 [August 20, 2009] version 1.2.40rc01 [September 2, 2009] 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. 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 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 (subscription required; visit diff --git a/pngwrite.c b/pngwrite.c index fb9ea8a3..26cc4dae 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -1,7 +1,7 @@ /* 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 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (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); #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 /* Invert the alpha channel from opacity to transparency */ if (transforms & PNG_TRANSFORM_INVERT_ALPHA)