aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-29 23:05:45 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-29 23:05:45 +0800
commit0e851b7cd009b4790e57ca51e2403eb9183f34cc (patch)
treed001605dc95b8991a7a837fa5336a1bc3b458f53
parent9caf9737b957ea37fde800ffcee89c2f5d387bb4 (diff)
downloadfreebsd-ports-gnome-0e851b7cd009b4790e57ca51e2403eb9183f34cc.tar.gz
freebsd-ports-gnome-0e851b7cd009b4790e57ca51e2403eb9183f34cc.tar.zst
freebsd-ports-gnome-0e851b7cd009b4790e57ca51e2403eb9183f34cc.zip
- fix build for png-1.4.1
-rw-r--r--graphics/enfle/files/patch-plugins-loader-png-png.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/graphics/enfle/files/patch-plugins-loader-png-png.c b/graphics/enfle/files/patch-plugins-loader-png-png.c
new file mode 100644
index 000000000000..eab0c8c1ed78
--- /dev/null
+++ b/graphics/enfle/files/patch-plugins-loader-png-png.c
@@ -0,0 +1,38 @@
+--- plugins/loader/png/png.c.orig 2006-03-12 09:24:16.000000000 +0100
++++ plugins/loader/png/png.c 2010-03-29 16:51:07.000000000 +0200
+@@ -156,7 +156,7 @@
+ int try_when_error;
+ unsigned int i, num_text;
+ int num_trans;
+- png_color_16p trans_values;
++ png_color_16p trans_color;
+ png_bytep trans;
+
+ //debug_message("png loader: load() called\n");
+@@ -260,7 +260,7 @@
+ color_type = png_get_color_type(png_ptr, info_ptr);
+
+ /* Set the transparent color */
+- if (png_get_tRNS(png_ptr, info_ptr, &trans, &num_trans, &trans_values)) {
++ if (png_get_tRNS(png_ptr, info_ptr, &trans, &num_trans, &trans_color)) {
+ //p->transparent_disposal = info->transparent_disposal;
+ switch (color_type) {
+ case PNG_COLOR_TYPE_PALETTE:
+@@ -273,13 +273,13 @@
+ break;
+ case PNG_COLOR_TYPE_RGB:
+ case PNG_COLOR_TYPE_RGB_ALPHA:
+- p->transparent_color.red = info_ptr->trans_values.red >> 8;
+- p->transparent_color.green = info_ptr->trans_values.green >> 8;
+- p->transparent_color.blue = info_ptr->trans_values.blue >> 8;
++ p->transparent_color.red = info_ptr->trans_color.red >> 8;
++ p->transparent_color.green = info_ptr->trans_color.green >> 8;
++ p->transparent_color.blue = info_ptr->trans_color.blue >> 8;
+ break;
+ case PNG_COLOR_TYPE_GRAY:
+ case PNG_COLOR_TYPE_GRAY_ALPHA:
+- p->transparent_color.gray = info_ptr->trans_values.gray;
++ p->transparent_color.gray = info_ptr->trans_color.gray;
+ break;
+ default:
+ break;