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. ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits