mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng15] Fix 'setting' handling in options.awk and fixed palette_max API
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
10303740d1
commit
3b69793c6f
3
pngget.c
3
pngget.c
@@ -1129,7 +1129,7 @@ png_get_io_chunk_name (png_structp 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;
|
||||
@@ -1138,5 +1138,4 @@ png_get_max_palette_index(png_const_structp png_ptr, png_const_infop info_ptr)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */
|
||||
|
||||
Reference in New Issue
Block a user