X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Flyr_std%2Fclamp.cpp;h=44b1345c15815506fc64d7d506955b964910d61c;hb=36d01e1527fda602a9aed07d209eb34e6770bca8;hp=cf0a8302fd2b12be6e5f760cb76dd9a9ae6ef96a;hpb=28f28705612902c15cd0702cc891fba35bf2d2df;p=synfig.git diff --git a/synfig-core/trunk/src/modules/lyr_std/clamp.cpp b/synfig-core/trunk/src/modules/lyr_std/clamp.cpp index cf0a830..44b1345 100644 --- a/synfig-core/trunk/src/modules/lyr_std/clamp.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/clamp.cpp @@ -5,16 +5,17 @@ ** $Id: clamp.cpp,v 1.2 2005/01/24 05:00:18 darco Exp $ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -73,7 +74,7 @@ inline Color Layer_Clamp::clamp_color(const Color &in)const { Color ret(in); - + if(ret.get_a()==0) return Color::alpha(); @@ -81,7 +82,7 @@ Layer_Clamp::clamp_color(const Color &in)const { if(ret.get_a()