mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Fix pngvalid.c to compile when SCALE_16 is disabled.
This commit is contained in:
@@ -6099,7 +6099,7 @@ gamma_info_imp(gamma_display *dp, png_structp pp, png_infop pi)
|
|||||||
* PNG_MAX_GAMMA_8 when doing the following.
|
* PNG_MAX_GAMMA_8 when doing the following.
|
||||||
*/
|
*/
|
||||||
if (dp->scale16)
|
if (dp->scale16)
|
||||||
# ifdef PNG_READ_16_TO_8_SUPPORTED
|
# ifdef PNG_READ_SCALE_16_TO_8_SUPPORTED
|
||||||
png_set_scale_16(pp);
|
png_set_scale_16(pp);
|
||||||
# else
|
# else
|
||||||
png_error(pp, "scale16 (16 to 8 bit conversion) not supported");
|
png_error(pp, "scale16 (16 to 8 bit conversion) not supported");
|
||||||
|
|||||||
Reference in New Issue
Block a user