diff options
Diffstat (limited to 'x11-toolkits/irrlicht/files/patch-source-Irrlicht_CImageLoaderPNG.cpp')
-rw-r--r-- | x11-toolkits/irrlicht/files/patch-source-Irrlicht_CImageLoaderPNG.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-toolkits/irrlicht/files/patch-source-Irrlicht_CImageLoaderPNG.cpp b/x11-toolkits/irrlicht/files/patch-source-Irrlicht_CImageLoaderPNG.cpp new file mode 100644 index 000000000000..ac80dbe8964f --- /dev/null +++ b/x11-toolkits/irrlicht/files/patch-source-Irrlicht_CImageLoaderPNG.cpp @@ -0,0 +1,28 @@ +--- source/Irrlicht/CImageLoaderPNG.cpp.orig 2012-05-26 13:57:05.000000000 +0200 ++++ source/Irrlicht/CImageLoaderPNG.cpp 2012-05-26 13:58:05.000000000 +0200 +@@ -12,6 +12,7 @@ + #else // _IRR_USE_NON_SYSTEM_LIB_PNG_ + #include "libpng/png.h" // use irrlicht included lib png + #endif // _IRR_USE_NON_SYSTEM_LIB_PNG_ ++ #include <pngpriv.h> + #endif // _IRR_COMPILE_WITH_LIBPNG_ + + #include "CImage.h" +@@ -28,7 +29,7 @@ + static void png_cpexcept_error(png_structp png_ptr, png_const_charp msg) + { + os::Printer::log("PNG FATAL ERROR", msg, ELL_ERROR); +- longjmp(png_ptr->jmpbuf, 1); ++ longjmp(png_jmpbuf(png_ptr), 1); + } + + // PNG function for file reading +@@ -162,7 +163,7 @@ + if (BitDepth < 8) + { + if (ColorType==PNG_COLOR_TYPE_GRAY || ColorType==PNG_COLOR_TYPE_GRAY_ALPHA) +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + else + png_set_packing(png_ptr); + } |