[devel] Fix pngvalid.c to compile when SCALE_16 is disabled.
This commit is contained in:
parent
6da2f2d92a
commit
9a1e2232ba
@ -6099,7 +6099,7 @@ gamma_info_imp(gamma_display *dp, png_structp pp, png_infop pi)
|
||||
* PNG_MAX_GAMMA_8 when doing the following.
|
||||
*/
|
||||
if (dp->scale16)
|
||||
# ifdef PNG_READ_16_TO_8_SUPPORTED
|
||||
# ifdef PNG_READ_SCALE_16_TO_8_SUPPORTED
|
||||
png_set_scale_16(pp);
|
||||
# else
|
||||
png_error(pp, "scale16 (16 to 8 bit conversion) not supported");
|
||||
|
Loading…
Reference in New Issue
Block a user