aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-29 22:10:07 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-29 22:10:07 +0800
commit093d52870dbee8595dc6abd68e0e165f2c44c71d (patch)
tree2dcf635494b37643bcb007091f5ec308d5d948cc /graphics
parentdf8aef4017ef04409683e34c8b5b29b2cb5d2876 (diff)
downloadfreebsd-ports-graphics-093d52870dbee8595dc6abd68e0e165f2c44c71d.tar.gz
freebsd-ports-graphics-093d52870dbee8595dc6abd68e0e165f2c44c71d.tar.zst
freebsd-ports-graphics-093d52870dbee8595dc6abd68e0e165f2c44c71d.zip
- fix build for png-1.4.1
Diffstat (limited to 'graphics')
-rw-r--r--graphics/sng/files/patch-sngd.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/graphics/sng/files/patch-sngd.c b/graphics/sng/files/patch-sngd.c
new file mode 100644
index 00000000000..d6259018e75
--- /dev/null
+++ b/graphics/sng/files/patch-sngd.c
@@ -0,0 +1,25 @@
+--- sngd.c.orig 2003-11-15 20:25:10.000000000 +0100
++++ sngd.c 2010-03-29 16:10:17.000000000 +0200
+@@ -793,17 +793,17 @@
+ fprintf(fpout, "tRNS {\n");
+ switch (info_ptr->color_type) {
+ case PNG_COLOR_TYPE_GRAY:
+- fprintf(fpout, " gray: %u;\n", info_ptr->trans_values.gray);
++ fprintf(fpout, " gray: %u;\n", info_ptr->trans_color.gray);
+ break;
+ case PNG_COLOR_TYPE_RGB:
+ fprintf(fpout, " red: %u; green: %u; blue: %u;\n",
+- info_ptr->trans_values.red,
+- info_ptr->trans_values.green,
+- info_ptr->trans_values.blue);
++ info_ptr->trans_color.red,
++ info_ptr->trans_color.green,
++ info_ptr->trans_color.blue);
+ break;
+ case PNG_COLOR_TYPE_PALETTE:
+ for (i = 0; i < info_ptr->num_trans; i++)
+- fprintf(fpout, " %u", info_ptr->trans[i]);
++ fprintf(fpout, " %u", info_ptr->trans_alpha[i]);
+ break;
+ case PNG_COLOR_TYPE_GRAY_ALPHA:
+ case PNG_COLOR_TYPE_RGB_ALPHA: