aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gimp-app/files
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-29 11:51:49 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-29 11:51:49 +0800
commitc964d7b26fd8a6d92590ba1807a3a60996abc29d (patch)
treea39a220db33d17692a831295ee1873e9e79b6ff6 /graphics/gimp-app/files
parentf5d33e9220644fdf18be3fc66ed5379310f5ee28 (diff)
downloadfreebsd-ports-gnome-c964d7b26fd8a6d92590ba1807a3a60996abc29d.tar.gz
freebsd-ports-gnome-c964d7b26fd8a6d92590ba1807a3a60996abc29d.tar.zst
freebsd-ports-gnome-c964d7b26fd8a6d92590ba1807a3a60996abc29d.zip
- fix build for png-1.4.1
Diffstat (limited to 'graphics/gimp-app/files')
-rw-r--r--graphics/gimp-app/files/patch-plug-ins_file-ico_ico-load.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/gimp-app/files/patch-plug-ins_file-ico_ico-load.c b/graphics/gimp-app/files/patch-plug-ins_file-ico_ico-load.c
new file mode 100644
index 000000000000..0ef633e4f38f
--- /dev/null
+++ b/graphics/gimp-app/files/patch-plug-ins_file-ico_ico-load.c
@@ -0,0 +1,19 @@
+--- plug-ins/file-ico/ico-load.c.orig 2010-03-28 14:29:48.000000000 +0200
++++ plug-ins/file-ico/ico-load.c 2010-03-28 14:31:00.000000000 +0200
+@@ -287,14 +287,14 @@
+ switch (color_type)
+ {
+ case PNG_COLOR_TYPE_GRAY:
+- png_set_gray_1_2_4_to_8 (png_ptr);
++ png_set_expand_gray_1_2_4_to_8 (png_ptr);
+ 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:
+- png_set_gray_1_2_4_to_8 (png_ptr);
++ png_set_expand_gray_1_2_4_to_8 (png_ptr);
+ if ( bit_depth == 16 )
+ png_set_strip_16 (png_ptr);
+ png_set_gray_to_rgb (png_ptr);