X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_filter%2Fblur.cpp;h=4832791129ab924eb8d1a227f157538cca1ba371;hb=49b7555d9c8ae6590a56b5dcc82f34ee8b025e34;hp=c9cabd2eabcaafd38d2393c273b8effa8c7e8e29;hpb=16b3beced25134bef064705568ecb893a6be4e79;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_filter/blur.cpp b/synfig-core/trunk/src/modules/mod_filter/blur.cpp index c9cabd2..4832791 100644 --- a/synfig-core/trunk/src/modules/mod_filter/blur.cpp +++ b/synfig-core/trunk/src/modules/mod_filter/blur.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file blur.cpp ** \brief Template Header ** ** $Id: blur.cpp,v 1.2 2005/01/24 03:08:17 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 */ /* ========================================================================= */ @@ -30,22 +31,22 @@ #include "blur.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #endif -using namespace sinfg; +using namespace synfig; using namespace etl; using namespace std; @@ -60,16 +61,16 @@ using namespace std; /* -- G L O B A L S --------------------------------------------------------- */ -SINFG_LAYER_INIT(Blur_Layer); -SINFG_LAYER_SET_NAME(Blur_Layer,"blur"); -SINFG_LAYER_SET_LOCAL_NAME(Blur_Layer,_("Blur")); -SINFG_LAYER_SET_CATEGORY(Blur_Layer,_("Blurs")); -SINFG_LAYER_SET_VERSION(Blur_Layer,"0.2"); -SINFG_LAYER_SET_CVS_ID(Blur_Layer,"$Id: blur.cpp,v 1.2 2005/01/24 03:08:17 darco Exp $"); +SYNFIG_LAYER_INIT(Blur_Layer); +SYNFIG_LAYER_SET_NAME(Blur_Layer,"blur"); +SYNFIG_LAYER_SET_LOCAL_NAME(Blur_Layer,_("Blur")); +SYNFIG_LAYER_SET_CATEGORY(Blur_Layer,_("Blurs")); +SYNFIG_LAYER_SET_VERSION(Blur_Layer,"0.2"); +SYNFIG_LAYER_SET_CVS_ID(Blur_Layer,"$Id: blur.cpp,v 1.2 2005/01/24 03:08:17 darco Exp $"); /* -- F U N C T I O N S ----------------------------------------------------- */ -inline void clamp(sinfg::Vector &v) +inline void clamp(synfig::Vector &v) { if(v[0]<0.0)v[0]=0.0; if(v[1]<0.0)v[1]=0.0;