summaryrefslogtreecommitdiff
path: root/graphics/sng/files
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/sng/files')
-rw-r--r--graphics/sng/files/patch-sngc.c10
-rw-r--r--graphics/sng/files/patch-sngd.c25
2 files changed, 32 insertions, 3 deletions
diff --git a/graphics/sng/files/patch-sngc.c b/graphics/sng/files/patch-sngc.c
new file mode 100644
index 000000000000..14992c786307
--- /dev/null
+++ b/graphics/sng/files/patch-sngc.c
@@ -0,0 +1,10 @@
+--- sngc.c.orig 2010-11-05 18:29:14.000000000 +0100
++++ sngc.c 2012-05-04 07:33:36.000000000 +0200
+@@ -11,6 +11,7 @@
+ #include <ctype.h>
+ #define PNG_INTERNAL
+ #include "png.h"
++#include "pngpriv.h"
+
+ #include "sng.h"
+
diff --git a/graphics/sng/files/patch-sngd.c b/graphics/sng/files/patch-sngd.c
index d6259018e75d..559068050313 100644
--- a/graphics/sng/files/patch-sngd.c
+++ b/graphics/sng/files/patch-sngd.c
@@ -1,6 +1,25 @@
---- sngd.c.orig 2003-11-15 20:25:10.000000000 +0100
-+++ sngd.c 2010-03-29 16:10:17.000000000 +0200
-@@ -793,17 +793,17 @@
+--- sngd.c.orig 2012-05-04 08:20:04.000000000 +0200
++++ sngd.c 2012-05-04 08:42:54.000000000 +0200
+@@ -10,6 +10,7 @@
+ #define PNG_INTERNAL
+ #include "config.h" /* for RGBTXT */
+ #include "png.h"
++#include "pngpriv.h"
+ #include "sng.h"
+
+ png_structp png_ptr;
+@@ -726,8 +727,8 @@
+ }
+ #ifdef PNG_FLOATING_POINT_SUPPORTED
+ #ifndef MNG_INTERFACE
+- fprintf(fpout, " width: %g\n", info_ptr->scal_pixel_width);
+- fprintf(fpout, " height: %g\n", info_ptr->scal_pixel_height);
++ fprintf(fpout, " width: %s\n", info_ptr->scal_s_width);
++ fprintf(fpout, " height: %s\n", info_ptr->scal_s_height);
+ #else
+ fprintf(fpout, " width: %g\n", info_ptr->scal.pixel_width);
+ fprintf(fpout, " height: %g\n", info_ptr->scal.pixel_height);
+@@ -794,17 +795,17 @@
fprintf(fpout, "tRNS {\n");
switch (info_ptr->color_type) {
case PNG_COLOR_TYPE_GRAY: