call png_set_sRGB_gAMA_and_cHRM
This commit is contained in:
parent
c1600d1440
commit
0009be4d89
1 changed files with 2 additions and 1 deletions
|
|
@ -12283,8 +12283,9 @@ static int do_png_save(FILE * fi, const char * const fname, SDL_Surface * surf)
|
|||
info_ptr->bit_depth = 8;
|
||||
info_ptr->color_type = PNG_COLOR_TYPE_RGB;
|
||||
info_ptr->interlace_type = 1;
|
||||
info_ptr->valid = 0;
|
||||
info_ptr->valid = 0; // will be updated by various png_set_FOO() functions
|
||||
|
||||
png_set_sRGB_gAMA_and_cHRM(png_ptr, info_ptr, PNG_sRGB_INTENT_PERCEPTUAL);
|
||||
|
||||
/* Set headers */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue