diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-30 19:02:24 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-30 19:02:24 +0800 |
commit | 4fec80129f2a1f20811d102e5c2ea50986fb218e (patch) | |
tree | e923e5d56269b5dc8ec29145f10314aa5bf69a7f /games/adgali/files | |
parent | 4030d09108fa0226782f5efc46df6c3c3ddc6925 (diff) | |
download | freebsd-ports-gnome-4fec80129f2a1f20811d102e5c2ea50986fb218e.tar.gz freebsd-ports-gnome-4fec80129f2a1f20811d102e5c2ea50986fb218e.tar.zst freebsd-ports-gnome-4fec80129f2a1f20811d102e5c2ea50986fb218e.zip |
- fix build for png-1.4.1
Diffstat (limited to 'games/adgali/files')
-rw-r--r-- | games/adgali/files/patch-src-input-imageio-agl_pngio.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/adgali/files/patch-src-input-imageio-agl_pngio.c b/games/adgali/files/patch-src-input-imageio-agl_pngio.c new file mode 100644 index 000000000000..9a7155464ad0 --- /dev/null +++ b/games/adgali/files/patch-src-input-imageio-agl_pngio.c @@ -0,0 +1,20 @@ +--- src/input/imageio/agl_pngio.c.orig 2003-06-24 01:58:47.000000000 +0200 ++++ src/input/imageio/agl_pngio.c 2010-03-30 11:23:50.000000000 +0200 +@@ -65,7 +65,7 @@ + unsigned char buf[8]; + + if (agl_ios_read(ops, buf, 1, 8, NULL) == 8) +- return png_check_sig(buf, 8); ++ return !png_sig_cmp(buf, 0, 8); + return 0; + } + +@@ -131,7 +131,7 @@ + /* see pnglib for these calls */ + + if (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); + + if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) + png_set_tRNS_to_alpha(png_ptr); |