summaryrefslogtreecommitdiff
path: root/games/Scorched3D/scorched3d-43.1c-libpng14.patch
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-08-24 00:16:58 -0400
committerErik Hanson <erik@slackbuilds.org>2010-08-29 15:32:11 -0500
commita1f00d22d4a812ebe68f0e81dba088c479c5869c (patch)
tree912d0cfa7c5836a84cf8c5e0372c02fc32d5cf59 /games/Scorched3D/scorched3d-43.1c-libpng14.patch
parent1fdd97021286188c2ec47939c0c2a0727c13ab10 (diff)
downloadslackbuilds-a1f00d22d4a812ebe68f0e81dba088c479c5869c.tar.gz
games/Scorched3D: Added (3D artillery game)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/Scorched3D/scorched3d-43.1c-libpng14.patch')
-rw-r--r--games/Scorched3D/scorched3d-43.1c-libpng14.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/games/Scorched3D/scorched3d-43.1c-libpng14.patch b/games/Scorched3D/scorched3d-43.1c-libpng14.patch
new file mode 100644
index 0000000000..d61a2b6ac4
--- /dev/null
+++ b/games/Scorched3D/scorched3d-43.1c-libpng14.patch
@@ -0,0 +1,40 @@
+http://bugs.gentoo.org/show_bug.cgi?id=308867
+
+--- src/common/image/ImagePng.cpp
++++ src/common/image/ImagePng.cpp
+@@ -189,7 +189,7 @@ bool ImagePng::loadFromBuffer(NetBuffer
+ info_ptr = png_create_info_struct(png_ptr);
+ if (info_ptr == NULL)
+ {
+- png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, NULL, NULL);
+ return false;
+ }
+
+@@ -200,7 +200,7 @@ bool ImagePng::loadFromBuffer(NetBuffer
+ if (setjmp(png_jmpbuf(png_ptr)))
+ {
+ /* Free all of the memory associated with the png_ptr and info_ptr */
+- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ /* If we get here, we had a problem reading the file */
+ return false;
+ }
+@@ -258,7 +258,7 @@ bool ImagePng::loadFromBuffer(NetBuffer
+ }
+ else
+ {
+- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+
+ Logger::log(S3D::formatStringBuffer(
+ "Invalid PNG format.\n"
+@@ -272,7 +272,7 @@ bool ImagePng::loadFromBuffer(NetBuffer
+ // END NEW CODE
+
+ /* clean up after the read, and free any memory allocated - REQUIRED */
+- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+
+ /* that's it */
+ return true;