]> git.pld-linux.org Git - packages/vigra.git/blame - vigra-libpng.patch
- added -libpng.patch
[packages/vigra.git] / vigra-libpng.patch
CommitLineData
5acedf3b
MB
1--- vigra1.6.0/src/impex/png.cxx 2008-08-13 15:15:45.000000000 +0200
2+++ vigra1.6.0/src/impex/png.cxx.new 2010-01-28 19:45:59.180738629 +0100
3@@ -270,8 +270,13 @@
4 // expand gray values to at least one byte size
5 if ( color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8 ) {
6 if (setjmp(png->jmpbuf))
7+#if PNG_LIBPNG_VER < 10400
8 vigra_postcondition( false,png_error_message.insert(0, "error in png_set_gray_1_2_4_to_8(): ").c_str());
9 png_set_gray_1_2_4_to_8(png);
10+#else
11+ vigra_postcondition( false,png_error_message.insert(0, "error in png_set_expand_gray_1_2_4_to_8(): ").c_str());
12+ png_set_expand_gray_1_2_4_to_8(png);
13+#endif
14 bit_depth = 8;
15 }
16
This page took 0.059945 seconds and 4 git commands to generate.