diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 07:19:34 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 07:19:34 +0000 |
commit | bf9c3e77f4c72f5457363862bbfe1bafda0fb1ff (patch) | |
tree | b26bf7d913ced3abc4bad5e584d46a25f7c093f4 /graphics/devil | |
parent | 426d85f02edb2c2bc4b1d46262d09e03c98efb00 (diff) | |
download | ports-bf9c3e77f4c72f5457363862bbfe1bafda0fb1ff.tar.gz ports-bf9c3e77f4c72f5457363862bbfe1bafda0fb1ff.zip |
- fix build for png-1.4.1
Notes
Notes:
svn path=/head/; revision=251686
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 |