aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-29 20:41:12 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-29 20:41:12 +0800
commiteee38d16b29e3f4552e0ee5dd6e2a19b8f34df66 (patch)
tree738f074473ed44b7fb9f00e9d3927a33c0befe8a /astro
parent6b8842790f86fe50916021803756432fe2e4491f (diff)
downloadfreebsd-ports-gnome-eee38d16b29e3f4552e0ee5dd6e2a19b8f34df66.tar.gz
freebsd-ports-gnome-eee38d16b29e3f4552e0ee5dd6e2a19b8f34df66.tar.zst
freebsd-ports-gnome-eee38d16b29e3f4552e0ee5dd6e2a19b8f34df66.zip
- fix build for png-1.4.1
Diffstat (limited to 'astro')
-rw-r--r--astro/gaia/files/patch-Texture.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/astro/gaia/files/patch-Texture.cc b/astro/gaia/files/patch-Texture.cc
new file mode 100644
index 000000000000..4a8647eda8e8
--- /dev/null
+++ b/astro/gaia/files/patch-Texture.cc
@@ -0,0 +1,20 @@
+--- programs/gaia/Texture.cc.orig 2006-11-29 04:21:14.000000000 +0100
++++ programs/gaia/Texture.cc 2010-03-29 14:33:38.000000000 +0200
+@@ -277,7 +277,7 @@
+
+ fread(sig, 8, 1, infile);
+
+- if (!png_check_sig(sig, 8))
++ if (png_sig_cmp(sig, 0, 8))
+ throw Exception("bad PNG signature");
+
+ /* create structures */
+@@ -308,7 +308,7 @@
+ switch (color_type) {
+ case PNG_COLOR_TYPE_GRAY:
+ if (bit_depth < 8)
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+ m_glInternalFormat = GL_LUMINANCE8;
+ m_glFormat = GL_LUMINANCE;
+ break;