commit | db0ed3e62dfe57811b36d4f8a00a0b4315d6de28 | [log] [tgz] |
---|---|---|
author | John Bowler <jbowler@acm.org> | Wed May 18 18:51:24 2011 -0500 |
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Wed May 18 18:51:24 2011 -0500 |
tree | afbbc07f0d17ce3835c09c73327726e046c0db9a | |
parent | 8a7ec52c8b0b3b3356ad3b3a7052ad54d10a4581 [diff] |
[devel] png_set_background+png_expand_16 did not interwork correctly. This problem is present in 1.5.2; if png_set_background is called with need_expand false and the matching 16 bit color libpng erroneously just treats it as an 8-bit color because of where png_do_expand_16 is in the transform list. This simple fix reduces the supplied colour to 8 bits, so it gets smashed, but this is better than the current behavior.