X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Flyr_std%2Fclamp.cpp;h=10e36c535460eb76b05191d5f146982372915526;hb=fa569546257fc9ef11a6774f514d5abe9cf09542;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..10e36c5 100644 --- a/synfig-core/trunk/src/modules/lyr_std/clamp.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/clamp.cpp @@ -2,19 +2,20 @@ /*! \file clamp.cpp ** \brief Template Header ** -** $Id: clamp.cpp,v 1.2 2005/01/24 05:00:18 darco Exp $ +** $Id$ ** ** \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 */ /* ========================================================================= */ @@ -53,7 +54,7 @@ SYNFIG_LAYER_SET_NAME(Layer_Clamp,"clamp"); SYNFIG_LAYER_SET_LOCAL_NAME(Layer_Clamp,_("Clamp")); SYNFIG_LAYER_SET_CATEGORY(Layer_Clamp,_("Filters")); SYNFIG_LAYER_SET_VERSION(Layer_Clamp,"0.2"); -SYNFIG_LAYER_SET_CVS_ID(Layer_Clamp,"$Id: clamp.cpp,v 1.2 2005/01/24 05:00:18 darco Exp $"); +SYNFIG_LAYER_SET_CVS_ID(Layer_Clamp,"$Id$"); /* === P R O C E D U R E S ================================================= */ @@ -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()