diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-29 15:19:34 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-29 15:19:34 +0800 |
commit | 4834541003faecd48145c24ebeb9d9089cb07a09 (patch) | |
tree | 370303bf8a4d100ec61ae1a9357a7ac3a13d96e6 /graphics/devil | |
parent | 76b77b6918354cfe037458db2f5bd9b6fdbd6acc (diff) | |
download | freebsd-ports-gnome-4834541003faecd48145c24ebeb9d9089cb07a09.tar.gz freebsd-ports-gnome-4834541003faecd48145c24ebeb9d9089cb07a09.tar.zst freebsd-ports-gnome-4834541003faecd48145c24ebeb9d9089cb07a09.zip |
- fix build for png-1.4.1
Diffstat (limited to 'graphics/devil')
-rw-r--r-- | graphics/devil/files/patch-src-IL-src-il_icon.c | 11 | ||||
-rw-r--r-- | graphics/devil/files/patch-src-IL-src-il_png.c | 20 |
2 files changed, 31 insertions, 0 deletions
diff --git a/graphics/devil/files/patch-src-IL-src-il_icon.c b/graphics/devil/files/patch-src-IL-src-il_icon.c new file mode 100644 index 000000000000..ee808913268e --- /dev/null +++ b/graphics/devil/files/patch-src-IL-src-il_icon.c @@ -0,0 +1,11 @@ +--- src-IL/src/il_icon.c.orig 2009-03-08 08:10:09.000000000 +0100 ++++ src-IL/src/il_icon.c 2010-03-29 08:57:55.000000000 +0200 +@@ -525,7 +525,7 @@ + + // Expand low-bit-depth grayscale images to 8 bits + if (ico_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { +- png_set_gray_1_2_4_to_8(ico_png_ptr); ++ png_set_expand_gray_1_2_4_to_8(ico_png_ptr); + } + + // Expand RGB images with transparency to full alpha channels diff --git a/graphics/devil/files/patch-src-IL-src-il_png.c b/graphics/devil/files/patch-src-IL-src-il_png.c new file mode 100644 index 000000000000..a1c4e5c0e02e --- /dev/null +++ b/graphics/devil/files/patch-src-IL-src-il_png.c @@ -0,0 +1,20 @@ +--- src-IL/src/il_png.c.orig 2009-03-08 08:10:09.000000000 +0100 ++++ src-IL/src/il_png.c 2010-03-29 08:49:16.000000000 +0200 +@@ -105,7 +105,7 @@ + Read = iread(Signature, 1, 8); + iseek(-Read, IL_SEEK_CUR); + +- return png_check_sig(Signature, 8); ++ return !png_sig_cmp(Signature, 0, 8); + } + + +@@ -278,7 +278,7 @@ + + // Expand low-bit-depth grayscale images to 8 bits + if (png_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + } + + // Expand RGB images with transparency to full alpha channels |