X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Flyr_std%2Fclamp.cpp;h=0ea77200825873954a0ac5f9aba4a49dca64fe88;hb=4b886acca3929def466b0fb6a948bb5c37029190;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..0ea7720 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 */ /* ========================================================================= */ @@ -50,10 +51,10 @@ using namespace synfig; SYNFIG_LAYER_INIT(Layer_Clamp); 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_LOCAL_NAME(Layer_Clamp,N_("Clamp")); +SYNFIG_LAYER_SET_CATEGORY(Layer_Clamp,N_("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()