From 30135db6aa24a7e1c41525ad01a9e09c438a78ee Mon Sep 17 00:00:00 2001 From: dinoex Date: Mon, 29 Mar 2010 11:05:43 +0000 Subject: - fix build for png-1.4.1 --- graphics/enblend/files/patch-png.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 graphics/enblend/files/patch-png.cxx (limited to 'graphics') diff --git a/graphics/enblend/files/patch-png.cxx b/graphics/enblend/files/patch-png.cxx new file mode 100644 index 000000000000..2a513b548c54 --- /dev/null +++ b/graphics/enblend/files/patch-png.cxx @@ -0,0 +1,11 @@ +--- src/vigra_impex/png.cxx.orig 2007-11-25 00:46:55.000000000 +0100 ++++ src/vigra_impex/png.cxx 2010-03-29 11:49:42.000000000 +0200 +@@ -276,7 +276,7 @@ + if ( color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8 ) { + if (setjmp(png->jmpbuf)) + vigra_postcondition( false,png_error_message.insert(0, "error in png_set_gray_1_2_4_to_8(): ").c_str()); +- png_set_gray_1_2_4_to_8(png); ++ png_set_expand_gray_1_2_4_to_8(png); + bit_depth = 8; + } + -- cgit