aboutsummaryrefslogtreecommitdiffstats
path: root/main/zsnes/zsnes-libpng15.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-05-24 12:51:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-05-24 12:51:54 +0000
commitaeab26d98cd427c5b7effd561d230aae1515e3ea (patch)
treea9eff242254923d52a0ee0a86321d8f3fe233c0f /main/zsnes/zsnes-libpng15.patch
parent17bf2543c197f8d77c5d752f0340d355d39d1e6c (diff)
downloadaports-aeab26d98cd427c5b7effd561d230aae1515e3ea.tar.bz2
aports-aeab26d98cd427c5b7effd561d230aae1515e3ea.tar.xz
main/zsnes: build fix for libpng15
the patch assues that png_set_IHDR() actually sets the color_type
Diffstat (limited to 'main/zsnes/zsnes-libpng15.patch')
-rw-r--r--main/zsnes/zsnes-libpng15.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/zsnes/zsnes-libpng15.patch b/main/zsnes/zsnes-libpng15.patch
new file mode 100644
index 0000000000..8f83171668
--- /dev/null
+++ b/main/zsnes/zsnes-libpng15.patch
@@ -0,0 +1,10 @@
+--- ./src/zip/zpng.c.orig
++++ ./src/zip/zpng.c
+@@ -129,7 +129,6 @@
+ png_set_IHDR(png_ptr, info_ptr, width, height, 8,
+ PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE,
+ PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
+- info_ptr->color_type = PNG_COLOR_TYPE_RGB;
+
+ //Allocate an array of scanline pointers
+ row_pointers = (png_bytep*)malloc(height*sizeof(png_bytep));