From 945ac244d887adae975493c13a1cdf09d38d4beb Mon Sep 17 00:00:00 2001 From: dinoex Date: Mon, 29 Mar 2010 11:47:03 +0000 Subject: - fix build for png-1.4.1 --- graphics/hugin/files/patch-png.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 graphics/hugin/files/patch-png.cxx (limited to 'graphics/hugin') diff --git a/graphics/hugin/files/patch-png.cxx b/graphics/hugin/files/patch-png.cxx new file mode 100644 index 000000000000..5a721b7e269e --- /dev/null +++ b/graphics/hugin/files/patch-png.cxx @@ -0,0 +1,11 @@ +--- src/foreign/vigra/vigra_impex/png.cxx.orig 2009-12-01 23:39:05.000000000 +0100 ++++ src/foreign/vigra/vigra_impex/png.cxx 2010-03-29 13:22:16.000000000 +0200 +@@ -272,7 +272,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