PNG screenshots: don't save custom gAMA.

This should be more correct, since previously, the saved PNGs were way too
contrasty when looked from within a browser.  Now, they'll always be
slightly darker than in-game (assuming one has a gamma greater than 1).

git-svn-id: https://svn.eduke32.com/eduke32@2673 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-05-18 21:40:54 +00:00
parent 1c530d4b2f
commit 94f9c03123

View file

@ -15789,7 +15789,7 @@ static int32_t screencapture_png(const char *filename, char inverseit, const cha
png_set_PLTE(png_ptr, info_ptr, palette, 256);
}
png_set_gAMA(png_ptr, info_ptr, vid_gamma); // 1.0/vid_gamma ?
// png_set_gAMA(png_ptr, info_ptr, vid_gamma); // 1.0/vid_gamma ?
// png_set_sRGB(png_ptr, info_ptr, PNG_sRGB_INTENT_SATURATION); // hm...
text = (png_textp)png_malloc(png_ptr, 2*png_sizeof(png_text));