From 8fe28948ca147d465247cf6df7f68d6f1db91ba3 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sat, 31 Oct 2009 12:31:06 -0500 Subject: [PATCH] [devel] Removed a harmless extra png_set_invert_alpha() from pngwrite.c --- ANNOUNCE | 5 +++-- CHANGES | 3 ++- pngwrite.c | 8 +------- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 7989ba3fb..165d20dd5 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,5 +1,5 @@ -Libpng 1.4.0beta89 - October 30, 2009 +Libpng 1.4.0beta89 - 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. @@ -588,8 +588,9 @@ version 1.4.0beta88 [October 30, 2009] Revised libpng*.txt section about differences between 1.2.x and 1.4.0 because most of the new features have now been ported back to 1.2.41 -version 1.4.0beta89 [October 30, 2009] +version 1.4.0beta89 [October 31, 2009] More bugfixes and improvements to CMakeLists.txt (Philip Lowman) + 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/CHANGES b/CHANGES index 59703f185..3090a744b 100644 --- a/CHANGES +++ b/CHANGES @@ -2274,8 +2274,9 @@ version 1.4.0beta88 [October 30, 2009] Revised libpng*.txt section about differences between 1.2.x and 1.4.0 because most of the new features have now been ported back to 1.2.41 -version 1.4.0beta89 [October 30, 2009] +version 1.4.0beta89 [October 31, 2009] More bugfixes and improvements to CMakeLists.txt (Philip Lowman) + 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 961f476e8..e1eb9fc03 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.4.0 [October 30, 2009] + * Last changed in libpng 1.4.0 [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.) @@ -1426,12 +1426,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)