mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Backward compatibility with 1.6
1.6 did not define PNG_READ_PNG_SUPPORTED, ever; it doesn't matter there. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
parent
fa86bd2a61
commit
b0076faf1f
@ -37,7 +37,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PNG_INFO_IMAGE_SUPPORTED) && defined(PNG_SEQUENTIAL_READ_SUPPORTED)\
|
#if defined(PNG_INFO_IMAGE_SUPPORTED) && defined(PNG_SEQUENTIAL_READ_SUPPORTED)\
|
||||||
&& defined(PNG_READ_PNG_SUPPORTED)
|
&& (defined(PNG_READ_PNG_SUPPORTED) || PNG_LIBPNG_VER < 10700)
|
||||||
/* If a transform is valid on both read and write this implies that if the
|
/* If a transform is valid on both read and write this implies that if the
|
||||||
* transform is applied to read it must also be applied on write to produce
|
* transform is applied to read it must also be applied on write to produce
|
||||||
* meaningful data. This is because these transforms when performed on read
|
* meaningful data. This is because these transforms when performed on read
|
||||||
@ -948,7 +948,7 @@ update_display(struct display *dp)
|
|||||||
|
|
||||||
if ((transform_info[i].valid_chunks == 0 ||
|
if ((transform_info[i].valid_chunks == 0 ||
|
||||||
(transform_info[i].valid_chunks & chunks) != 0) &&
|
(transform_info[i].valid_chunks & chunks) != 0) &&
|
||||||
(transform_info[i].color_mask_required & ct) ==
|
(transform_info[i].color_mask_required & ct) ==
|
||||||
transform_info[i].color_mask_required &&
|
transform_info[i].color_mask_required &&
|
||||||
(transform_info[i].color_mask_absent & ct) == 0 &&
|
(transform_info[i].color_mask_absent & ct) == 0 &&
|
||||||
(transform_info[i].bit_depths & bd) != 0 &&
|
(transform_info[i].bit_depths & bd) != 0 &&
|
||||||
@ -1006,7 +1006,7 @@ compare_read(struct display *dp, int applied_transforms)
|
|||||||
{
|
{
|
||||||
unsigned long chunks =
|
unsigned long chunks =
|
||||||
png_get_valid(dp->read_pp, dp->read_ip, 0xffffffff);
|
png_get_valid(dp->read_pp, dp->read_ip, 0xffffffff);
|
||||||
|
|
||||||
if (chunks != dp->chunks)
|
if (chunks != dp->chunks)
|
||||||
display_log(dp, APP_FAIL, "PNG chunks changed from 0x%lx to 0x%lx",
|
display_log(dp, APP_FAIL, "PNG chunks changed from 0x%lx to 0x%lx",
|
||||||
(unsigned long)dp->chunks, chunks);
|
(unsigned long)dp->chunks, chunks);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user