X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Flyr_std%2Fclamp.cpp;h=14b4c41b7a36a35c4d760864488a2397414b7323;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=500adde63704ebee760676a4e981e2a2e47cda33;hpb=16b3beced25134bef064705568ecb893a6be4e79;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 500adde..14b4c41 100644 --- a/synfig-core/trunk/src/modules/lyr_std/clamp.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/clamp.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file clamp.cpp -** \brief Template Header +** \brief Implementation of the "Clamp" layer ** -** $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 */ /* ========================================================================= */ @@ -29,14 +30,14 @@ #endif #include "clamp.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #endif @@ -44,16 +45,16 @@ using namespace etl; using namespace std; -using namespace sinfg; +using namespace synfig; /* === G L O B A L S ======================================================= */ -SINFG_LAYER_INIT(Layer_Clamp); -SINFG_LAYER_SET_NAME(Layer_Clamp,"clamp"); -SINFG_LAYER_SET_LOCAL_NAME(Layer_Clamp,_("Clamp")); -SINFG_LAYER_SET_CATEGORY(Layer_Clamp,_("Filters")); -SINFG_LAYER_SET_VERSION(Layer_Clamp,"0.2"); -SINFG_LAYER_SET_CVS_ID(Layer_Clamp,"$Id: clamp.cpp,v 1.2 2005/01/24 05:00:18 darco Exp $"); +SYNFIG_LAYER_INIT(Layer_Clamp); +SYNFIG_LAYER_SET_NAME(Layer_Clamp,"clamp"); +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$"); /* === 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()