[brlcad-commits] SF.net SVN: brlcad:[54172] brlcad/trunk/src/util/pix-png.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2013-01-14 22:44:05
|
Revision: 54172 http://brlcad.svn.sourceforge.net/brlcad/?rev=54172&view=rev Author: brlcad Date: 2013-01-14 22:43:58 +0000 (Mon, 14 Jan 2013) Log Message: ----------- don't set the gAMA chunk if gamma is negative/unset, quells warnings on default use Modified Paths: -------------- brlcad/trunk/src/util/pix-png.c Modified: brlcad/trunk/src/util/pix-png.c =================================================================== --- brlcad/trunk/src/util/pix-png.c 2013-01-14 20:35:44 UTC (rev 54171) +++ brlcad/trunk/src/util/pix-png.c 2013-01-14 22:43:58 UTC (rev 54172) @@ -165,7 +165,8 @@ * representing the value needed to un-do the 2.2 correction * auto-applied by PowerPoint for PC monitors. */ - png_set_gAMA(png_p, info_p, out_gamma); + if (out_gamma > 0.0) + png_set_gAMA(png_p, info_p, out_gamma); png_write_info(png_p, info_p); png_write_image(png_p, scanlines); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |