diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2011-06-17 23:07:16 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2011-06-17 23:07:16 -0500 |
commit | 6da2f2d92a3bafc725bb3192ca408d4a06de3bae (patch) | |
tree | 5531760eb05fbb8556a68ce678bf0eced5f88a03 /pngread.c | |
parent | 24145c886920f6c01e87015cfc02c994d4d2452b (diff) | |
download | libpng-6da2f2d92a3bafc725bb3192ca408d4a06de3bae.tar.gz |
[devel] Fix more inconsistencies from the swap of 16_TO_8 APIs.
pngvalid still fails.
Diffstat (limited to 'pngread.c')
-rw-r--r-- | pngread.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -1289,18 +1289,21 @@ png_read_png(png_structp png_ptr, png_infop info_ptr, #ifdef PNG_READ_16_TO_8_SUPPORTED /* Tell libpng to strip 16-bit/color files down to 8 bits per color. */ -# ifdef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED +# ifdef PNG_READ_SCALE_16_TO_8_SUPPORTED if (transforms & PNG_TRANSFORM_SCALE_16) png_set_scale_16(png_ptr); +# ifdef PNG_READ_STRIP_16_TO_8_SUPPORTED + else + +# endif # endif # ifdef PNG_READ_STRIP_16_TO_8_SUPPORTED - /* Added at libpng-1.5.4. "strip_16" produces the same result that it - * did in earlier versions, while "scale_16" is now more accurate. - */ - else + /* Added at libpng-1.5.4. "strip_16" produces the same result that it + * did in earlier versions, while "scale_16" is now more accurate. + */ if (transforms & PNG_TRANSFORM_STRIP_16) png_set_strip_16(png_ptr); -#endif +# endif #endif #ifdef PNG_READ_STRIP_ALPHA_SUPPORTED |