summaryrefslogtreecommitdiff
path: root/graphics/vigra/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/vigra/patches/patch-ab')
-rw-r--r--graphics/vigra/patches/patch-ab15
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/vigra/patches/patch-ab b/graphics/vigra/patches/patch-ab
new file mode 100644
index 00000000000..2443fc6bf56
--- /dev/null
+++ b/graphics/vigra/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2010/06/13 22:44:46 wiz Exp $
+
+--- src/impex/png.cxx.orig 2008-08-13 13:15:45.000000000 +0000
++++ src/impex/png.cxx
+@@ -270,8 +270,8 @@ namespace vigra {
+ // expand gray values to at least one byte size
+ 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);
++ vigra_postcondition( false,png_error_message.insert(0, "error in png_set_expand_gray_1_2_4_to_8(): ").c_str());
++ png_set_expand_gray_1_2_4_to_8(png);
+ bit_depth = 8;
+ }
+