summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/imlib/files/patch-png1.6.diff
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/dependencies/imlib/files/patch-png1.6.diff')
-rw-r--r--freebsd/dependencies/imlib/files/patch-png1.6.diff36
1 files changed, 36 insertions, 0 deletions
diff --git a/freebsd/dependencies/imlib/files/patch-png1.6.diff b/freebsd/dependencies/imlib/files/patch-png1.6.diff
new file mode 100644
index 000000000..b5e2f6324
--- /dev/null
+++ b/freebsd/dependencies/imlib/files/patch-png1.6.diff
@@ -0,0 +1,36 @@
+diff -ru a/Imlib/load.c b/Imlib/load.c
+--- a/Imlib/load.c 2015-06-21 03:21:07.000000000 +0200
++++ b/Imlib/load.c 2015-06-21 03:16:28.000000000 +0200
+@@ -196,7 +196,7 @@
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return NULL;
+ }
+- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
++ if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
+ {
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return NULL;
+diff -ru a/Imlib/utils.c b/Imlib/utils.c
+--- a/Imlib/utils.c 2015-06-21 03:21:07.000000000 +0200
++++ b/Imlib/utils.c 2015-06-21 03:16:20.000000000 +0200
+@@ -1965,7 +1965,7 @@
+ return NULL;
+ }
+
+- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
++ if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
+ {
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return NULL;
+diff -ru a/gdk_imlib/io-png.c b/gdk_imlib/io-png.c
+--- a/gdk_imlib/io-png.c 2015-06-21 03:21:07.000000000 +0200
++++ b/gdk_imlib/io-png.c 2015-06-21 03:16:37.000000000 +0200
+@@ -46,7 +46,7 @@
+ return NULL;
+ }
+
+- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
++ if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
+ {
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return NULL;