mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
Fix saving RGBA images
PNG_FORMAT_RGB and PNG_COLOR_TYPE_RGB both evaluate to 2, but PNG_FORMAT_RGBA evaluates to 3 while PNG_COLOR_TYPE_RGBA evaluates to 6; the bit indicating a palette is 1 while the bit indicating alpha is 4.
This commit is contained in:
parent
99e589cc98
commit
8cf841ecc7
3 changed files with 8 additions and 7 deletions
|
@ -17,7 +17,7 @@ struct ErrorHandler
|
|||
void (*StoreWarning)(struct ErrorHandler* self, const char* msg);
|
||||
};
|
||||
|
||||
bool SavePNG0(png_structp png_ptr, png_infop info_ptr, int png_format, png_uint_32 width,
|
||||
bool SavePNG0(png_structp png_ptr, png_infop info_ptr, int color_type, png_uint_32 width,
|
||||
png_uint_32 height, int level, png_voidp io_ptr, png_rw_ptr write_fn,
|
||||
png_bytepp row_pointers);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue