summaryrefslogtreecommitdiffstats
path: root/extra/gimp/libpng-1.4.patch
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-04-27 16:05:36 +0200
committertnut <thierryn1 at hispeed dot ch>2010-04-27 16:05:36 +0200
commitc0a9061eae6604278c3e0dab7da8d92f3c482e72 (patch)
tree7919d37ac285a92803aa1524c5505035d3bd56bd /extra/gimp/libpng-1.4.patch
parenta059b98e8434f20966d450728dac61e3bec5c770 (diff)
downloadnutyx-extra-c0a9061eae6604278c3e0dab7da8d92f3c482e72.tar.gz
nutyx-extra-c0a9061eae6604278c3e0dab7da8d92f3c482e72.tar.bz2
nutyx-extra-c0a9061eae6604278c3e0dab7da8d92f3c482e72.tar.xz
nutyx-extra-c0a9061eae6604278c3e0dab7da8d92f3c482e72.zip
gimp, patch libpng
Diffstat (limited to 'extra/gimp/libpng-1.4.patch')
-rw-r--r--extra/gimp/libpng-1.4.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/extra/gimp/libpng-1.4.patch b/extra/gimp/libpng-1.4.patch
new file mode 100644
index 000000000..8f7963d23
--- /dev/null
+++ b/extra/gimp/libpng-1.4.patch
@@ -0,0 +1,26 @@
+diff -Naur gimp-2.7.0-orig/plug-ins/file-ico/ico-load.c gimp-2.7.0/plug-ins/file-ico/ico-load.c
+--- gimp-2.7.0-orig/plug-ins/file-ico/ico-load.c 2010-01-18 19:01:46.000000000 -0500
++++ gimp-2.7.0/plug-ins/file-ico/ico-load.c 2010-01-18 19:14:43.000000000 -0500
+@@ -286,14 +286,22 @@
+ switch (color_type)
+ {
+ case PNG_COLOR_TYPE_GRAY:
++#if PNG_LIBPNG_VER < 10400
+ png_set_gray_1_2_4_to_8 (png_ptr);
++#else
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
++#endif
+ if ( bit_depth == 16 )
+ png_set_strip_16 (png_ptr);
+ png_set_gray_to_rgb (png_ptr);
+ png_set_add_alpha (png_ptr, 0xff, PNG_FILLER_AFTER);
+ break;
+ case PNG_COLOR_TYPE_GRAY_ALPHA:
++#if PNG_LIBPNG_VER < 10400
+ png_set_gray_1_2_4_to_8 (png_ptr);
++#else
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
++#endif
+ if ( bit_depth == 16 )
+ png_set_strip_16 (png_ptr);
+ png_set_gray_to_rgb (png_ptr);