call png_set_sRGB_gAMA_and_cHRM

This commit is contained in:
Albert Cahalan 2005-01-13 20:12:17 +00:00
parent c1600d1440
commit 0009be4d89

View file

@ -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 */