aboutsummaryrefslogtreecommitdiff
path: root/graphics/enfle/files/patch-plugins-loader-png-png.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/enfle/files/patch-plugins-loader-png-png.c')
-rw-r--r--graphics/enfle/files/patch-plugins-loader-png-png.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/graphics/enfle/files/patch-plugins-loader-png-png.c b/graphics/enfle/files/patch-plugins-loader-png-png.c
index eab0c8c1ed78..956b39a4fdcb 100644
--- a/graphics/enfle/files/patch-plugins-loader-png-png.c
+++ b/graphics/enfle/files/patch-plugins-loader-png-png.c
@@ -1,6 +1,14 @@
---- plugins/loader/png/png.c.orig 2006-03-12 09:24:16.000000000 +0100
-+++ plugins/loader/png/png.c 2010-03-29 16:51:07.000000000 +0200
-@@ -156,7 +156,7 @@
+--- plugins/loader/png/png.c.orig 2010-10-06 14:47:32.000000000 +0200
++++ plugins/loader/png/png.c 2012-05-04 07:30:47.000000000 +0200
+@@ -34,6 +34,7 @@
+ #error Install libpng
+ #endif
+ #endif
++# include <pngpriv.h>
+
+ #include "enfle/loader-plugin.h"
+ #include "utils/libstring.h"
+@@ -156,7 +157,7 @@
int try_when_error;
unsigned int i, num_text;
int num_trans;
@@ -9,7 +17,7 @@
png_bytep trans;
//debug_message("png loader: load() called\n");
-@@ -260,7 +260,7 @@
+@@ -260,7 +261,7 @@
color_type = png_get_color_type(png_ptr, info_ptr);
/* Set the transparent color */
@@ -18,7 +26,7 @@
//p->transparent_disposal = info->transparent_disposal;
switch (color_type) {
case PNG_COLOR_TYPE_PALETTE:
-@@ -273,13 +273,13 @@
+@@ -273,13 +274,13 @@
break;
case PNG_COLOR_TYPE_RGB:
case PNG_COLOR_TYPE_RGB_ALPHA: