aboutsummaryrefslogtreecommitdiffstats
path: root/games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-04-01 12:59:04 +0800
committerdinoex <dinoex@FreeBSD.org>2010-04-01 12:59:04 +0800
commitbb38fa1017be9dbd2be5987793912f413376ed2b (patch)
tree8b694a796cb28f7eba44cdc1a5cf1eacd3619a2b /games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp
parent70a66be68fce0878ca0468a0e7bcf264b3b121ef (diff)
downloadfreebsd-ports-gnome-bb38fa1017be9dbd2be5987793912f413376ed2b.tar.gz
freebsd-ports-gnome-bb38fa1017be9dbd2be5987793912f413376ed2b.tar.zst
freebsd-ports-gnome-bb38fa1017be9dbd2be5987793912f413376ed2b.zip
- fix build for png-1.4.1
PR: 145223
Diffstat (limited to 'games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp')
-rw-r--r--games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp b/games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp
new file mode 100644
index 000000000000..c54e100c76e2
--- /dev/null
+++ b/games/vegastrike/files/patch-objconv-basemaker-base_maker_texture.cpp
@@ -0,0 +1,20 @@
+--- objconv/basemaker/base_maker_texture.cpp.orig 2008-04-24 14:12:53.000000000 +0200
++++ objconv/basemaker/base_maker_texture.cpp 2010-04-01 06:40:29.000000000 +0200
+@@ -73,7 +73,7 @@
+ png_set_palette_to_rgb(png_ptr);
+
+ if (ctype == PNG_COLOR_TYPE_GRAY && data->bpp < 8)
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+
+ png_set_expand (png_ptr);
+ png_read_update_info (png_ptr,info_ptr);
+@@ -211,7 +211,7 @@
+ unsigned char sig[8];
+ fread(sig, sizeof(char), 8, fp);
+ fseek(fp,0,SEEK_SET);
+- if (png_check_sig(sig, 8)) {
++ if (!png_sig_cmp(sig, 0, 8)) {
+ return FORMAT_PNG;
+ }
+ }