[devel] Fixed pngvalid, simplified macros, added checking for 0 in sCAL.

This commit is contained in:
John Bowler
2011-06-18 13:37:11 -05:00
committed by Glenn Randers-Pehrson
parent c4a8214b77
commit 8d261262d9
11 changed files with 219 additions and 140 deletions

View File

@@ -191,7 +191,7 @@ void read_png(FILE *fp, unsigned int sig_read) /* File is already open */
* Use accurate scaling if it's available, otherwise just chop off the
* low byte.
*/
#ifdef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
#ifdef PNG_READ_SCALE_16_TO_8_SUPPORTED
png_set_scale_16(png_ptr);
#else
png_set_strip_16(png_ptr);