diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-04-04 04:33:27 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-04-04 04:33:27 +0800 |
commit | 60f693a4d332c875dad42fa50f1d1f82a082a031 (patch) | |
tree | fad8a4ddf07d8de2ff35f3578ebf9faceea36164 /x11-wm | |
parent | 1068c421df1b2f9b1a8a8655f668eaececae990e (diff) | |
download | freebsd-ports-gnome-60f693a4d332c875dad42fa50f1d1f82a082a031.tar.gz freebsd-ports-gnome-60f693a4d332c875dad42fa50f1d1f82a082a031.tar.zst freebsd-ports-gnome-60f693a4d332c875dad42fa50f1d1f82a082a031.zip |
- fix build for png-1.4.1
PR: 145262
Submitted by: Barbara
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/compiz/files/patch-plugins_png.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/x11-wm/compiz/files/patch-plugins_png.c b/x11-wm/compiz/files/patch-plugins_png.c index 06658d10fd1a..f06a746f70c5 100644 --- a/x11-wm/compiz/files/patch-plugins_png.c +++ b/x11-wm/compiz/files/patch-plugins_png.c @@ -1,12 +1,20 @@ - ---- plugins/png.c.orig 2010-04-01 13:17:02.000000000 +0300 -+++ plugins/png.c 2010-04-01 13:17:34.000000000 +0300 +--- plugins/png.c.orig 2009-09-01 07:38:22.000000000 +0200 ++++ plugins/png.c 2010-04-03 22:08:10.000000000 +0200 +@@ -102,7 +102,7 @@ + + /* expand gray bit depth if needed */ + if (color_type == PNG_COLOR_TYPE_GRAY && depth < 8) +- png_set_gray_1_2_4_to_8 (png); ++ png_set_expand_gray_1_2_4_to_8 (png); + + /* transform transparency to alpha */ + if (png_get_valid(png, info, PNG_INFO_tRNS)) @@ -167,7 +167,7 @@ Bool status; sig_bytes = fread (png_sig, 1, PNG_SIG_SIZE, file); - if (png_check_sig (png_sig, sig_bytes) == 0) -+ if (!png_sig_cmp (png_sig, 1, sig_bytes) == 0) ++ if (!png_sig_cmp (png_sig, 0, sig_bytes) == 0) return FALSE; png = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); @@ -15,9 +23,7 @@ memcpy (png_sig, buffer, PNG_SIG_SIZE); - if (png_check_sig (png_sig, PNG_SIG_SIZE) == 0) -+ if (!png_sig_cmp (png_sig, 1, PNG_SIG_SIZE) == 0) ++ if (!png_sig_cmp (png_sig, 0, PNG_SIG_SIZE) == 0) return FALSE; png = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); - - |