[libpng16] Fixed palette_max API.
This commit is contained in:
parent
8d391c6cea
commit
fe5c8b9755
1
ANNOUNCE
1
ANNOUNCE
@ -601,6 +601,7 @@ Version 1.6.0rc02 [February 4, 2013]
|
||||
Added png_get_palette_max() function.
|
||||
|
||||
Version 1.6.0rc03 [February 5, 2013]
|
||||
Fixed palette_max API.
|
||||
|
||||
|
||||
===========================================================================
|
||||
|
1
CHANGES
1
CHANGES
@ -4355,6 +4355,7 @@ Version 1.6.0rc02 [February 4, 2013]
|
||||
Added png_get_palette_max() function.
|
||||
|
||||
Version 1.6.0rc03 [February 5, 2013]
|
||||
Fixed palette_max API.
|
||||
|
||||
===========================================================================
|
||||
NOTICE November 17, 2012:
|
||||
|
2
png.h
2
png.h
@ -3203,7 +3203,7 @@ PNG_EXPORT(240, int, png_image_write_to_stdio, (png_imagep image, FILE *file,
|
||||
defined(PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED)
|
||||
PNG_EXPORT(242, void, png_set_check_for_invalid_index,
|
||||
(png_structrp png_ptr, int allowed));
|
||||
PNG_EXPORT(243, void, png_get_palette_max, (png_structp png_ptr,
|
||||
PNG_EXPORT(243, int, png_get_palette_max, (png_const_structp png_ptr,
|
||||
png_const_infop info_ptr));
|
||||
#endif
|
||||
|
||||
|
2
pngget.c
2
pngget.c
@ -1163,7 +1163,7 @@ png_get_io_chunk_type (png_const_structrp png_ptr)
|
||||
|
||||
#ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
|
||||
int PNGAPI
|
||||
png_get_max_palette_index(png_const_structp png_ptr, png_const_infop info_ptr)
|
||||
png_get_palette_max(png_const_structp png_ptr, png_const_infop info_ptr)
|
||||
{
|
||||
if (png_ptr != NULL && info_ptr != NULL)
|
||||
return png_ptr->num_palette_max;
|
||||
|
Loading…
Reference in New Issue
Block a user