From 0009be4d89046d458fa2b6c5396d74d90b6aa34c Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Thu, 13 Jan 2005 20:12:17 +0000 Subject: [PATCH] call png_set_sRGB_gAMA_and_cHRM --- src/tuxpaint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 80bfcd653..608ab07d0 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -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 */