aboutsummaryrefslogtreecommitdiff
path: root/devel/directfb
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-03-29 19:03:39 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-03-29 19:03:39 +0000
commitcaf7a74d47ef42e9bacd79ec336e0bac35c1fa3e (patch)
tree0afded98156d69df017a085a6ba73519f12529e8 /devel/directfb
parent11c7de586d057a2a8948e21bbb462741e52cf5a2 (diff)
downloadports-caf7a74d47ef42e9bacd79ec336e0bac35c1fa3e.tar.gz
ports-caf7a74d47ef42e9bacd79ec336e0bac35c1fa3e.zip
Notes
Diffstat (limited to 'devel/directfb')
-rw-r--r--devel/directfb/files/patch-idirectfbimageprovider_png.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/devel/directfb/files/patch-idirectfbimageprovider_png.c b/devel/directfb/files/patch-idirectfbimageprovider_png.c
new file mode 100644
index 000000000000..fd27de995267
--- /dev/null
+++ b/devel/directfb/files/patch-idirectfbimageprovider_png.c
@@ -0,0 +1,38 @@
+--- interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c.orig 2007-12-15 13:30:24.000000000 +0100
++++ interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c 2010-03-29 21:00:24.000000000 +0200
+@@ -168,7 +168,7 @@
+ static DFBResult
+ Probe( IDirectFBImageProvider_ProbeContext *ctx )
+ {
+- if (png_check_sig( ctx->header, 8 ))
++ if (!png_sig_cmp( ctx->header, 0, 8 ))
+ return DFB_OK;
+
+ return DFB_UNSUPPORTED;
+@@ -636,7 +636,7 @@
+ if (data->color_type == PNG_COLOR_TYPE_PALETTE) {
+ u32 key;
+ png_colorp palette = data->info_ptr->palette;
+- png_bytep trans = data->info_ptr->trans;
++ png_bytep trans = data->info_ptr->trans_alpha;
+ int num_colors = MIN( MAXCOLORMAPSIZE,
+ data->info_ptr->num_palette );
+ u8 cmap[3][num_colors];
+@@ -661,7 +661,7 @@
+ }
+ else {
+ /* ...or based on trans rgb value */
+- png_color_16p trans = &data->info_ptr->trans_values;
++ png_color_16p trans = &data->info_ptr->trans_color;
+
+ data->color_key = (((trans->red & 0xff00) << 8) |
+ ((trans->green & 0xff00)) |
+@@ -672,7 +672,7 @@
+ switch (data->color_type) {
+ case PNG_COLOR_TYPE_PALETTE: {
+ png_colorp palette = data->info_ptr->palette;
+- png_bytep trans = data->info_ptr->trans;
++ png_bytep trans = data->info_ptr->trans_alpha;
+ int num_trans = data->info_ptr->num_trans;
+ int num_colors = MIN( MAXCOLORMAPSIZE, data->info_ptr->num_palette );
+