diff options
author | root <root@rshg054.dnsready.net> | 2012-02-12 23:15:07 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-12 23:15:07 +0000 |
commit | 0020cc650ff973f269f23332e82fc097254d0adc (patch) | |
tree | 4eb4ed0d80064cbc09ee64ac2f9a4dc53ef2fb89 /multilib/zsnes/zsnes-1.51-libpng15.patch | |
parent | cfceb92e73d7f6a32494f0ba258b98748af43f34 (diff) |
Sun Feb 12 23:15:07 UTC 2012
Diffstat (limited to 'multilib/zsnes/zsnes-1.51-libpng15.patch')
-rw-r--r-- | multilib/zsnes/zsnes-1.51-libpng15.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/multilib/zsnes/zsnes-1.51-libpng15.patch b/multilib/zsnes/zsnes-1.51-libpng15.patch new file mode 100644 index 000000000..b32c30967 --- /dev/null +++ b/multilib/zsnes/zsnes-1.51-libpng15.patch @@ -0,0 +1,12 @@ +Use existing png_set_IHDR() and stop accessing PNG structure members directly + +--- src/zip/zpng.c ++++ 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)); |