aboutsummaryrefslogtreecommitdiff
path: root/devel/libclaw
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-03-29 17:58:13 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-03-29 17:58:13 +0000
commit61540bed3672f08185969e7251e28a42ebc7c443 (patch)
tree3eec36593a6162e26464a7f27153d2fd5b4704ba /devel/libclaw
parent87bac6b2331d7a82c99d2580f39a5fa2745c874e (diff)
downloadports-61540bed3672f08185969e7251e28a42ebc7c443.tar.gz
ports-61540bed3672f08185969e7251e28a42ebc7c443.zip
Notes
Diffstat (limited to 'devel/libclaw')
-rw-r--r--devel/libclaw/files/patch-claw-code-png_reader.cpp38
-rw-r--r--devel/libclaw/files/patch-claw-code-png_writer.cpp11
2 files changed, 49 insertions, 0 deletions
diff --git a/devel/libclaw/files/patch-claw-code-png_reader.cpp b/devel/libclaw/files/patch-claw-code-png_reader.cpp
new file mode 100644
index 000000000000..8369b2c7eea6
--- /dev/null
+++ b/devel/libclaw/files/patch-claw-code-png_reader.cpp
@@ -0,0 +1,38 @@
+--- claw/code/png_reader.cpp.orig 2008-07-08 11:52:14.000000000 +0200
++++ claw/code/png_reader.cpp 2010-03-29 09:25:03.000000000 +0200
+@@ -146,7 +146,7 @@
+ {
+ /* If we get here, we had a problem reading the file */
+ /* 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);
+ throw CLAW_EXCEPTION("Invalid PNG file.");
+ }
+
+@@ -156,7 +156,7 @@
+ claw__graphic__png__source_manager__read );
+
+ png_set_strip_16(png_ptr);
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+ png_set_packing(png_ptr);
+
+ // transform palette index into RGB value
+@@ -169,7 +169,7 @@
+ png_read_info(png_ptr, info_ptr);
+ read_image( png_ptr, info_ptr );
+
+- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ } // png::reader::read_from_file()
+
+ /*----------------------------------------------------------------------------*/
+@@ -339,7 +339,7 @@
+ info_ptr = png_create_info_struct(png_ptr);
+
+ if (!info_ptr)
+- png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, NULL, NULL);
+ }
+
+ if (!png_ptr || !info_ptr)
diff --git a/devel/libclaw/files/patch-claw-code-png_writer.cpp b/devel/libclaw/files/patch-claw-code-png_writer.cpp
new file mode 100644
index 000000000000..0c5ee5b77678
--- /dev/null
+++ b/devel/libclaw/files/patch-claw-code-png_writer.cpp
@@ -0,0 +1,11 @@
+--- claw/code/png_writer.cpp.orig 2008-07-08 11:52:14.000000000 +0200
++++ claw/code/png_writer.cpp 2010-03-29 10:14:49.000000000 +0200
+@@ -296,7 +296,7 @@
+ info_ptr = png_create_info_struct(png_ptr);
+
+ if (!info_ptr)
+- png_destroy_write_struct(&png_ptr, png_infopp_NULL);
++ png_destroy_write_struct(&png_ptr, NULL);
+ }
+
+ if (!png_ptr || !info_ptr)