/* === S Y N F I G ========================================================= */
/*! \file mod_gradient/radialgradient.cpp
-** \brief Template Header
+** \brief Implementation of the "Radial Gradient" layer
**
** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
SYNFIG_LAYER_INIT(RadialGradient);
SYNFIG_LAYER_SET_NAME(RadialGradient,"radial_gradient");
-SYNFIG_LAYER_SET_LOCAL_NAME(RadialGradient,_("Radial Gradient"));
-SYNFIG_LAYER_SET_CATEGORY(RadialGradient,_("Gradients"));
+SYNFIG_LAYER_SET_LOCAL_NAME(RadialGradient,N_("Radial Gradient"));
+SYNFIG_LAYER_SET_CATEGORY(RadialGradient,N_("Gradients"));
SYNFIG_LAYER_SET_VERSION(RadialGradient,"0.1");
SYNFIG_LAYER_SET_CVS_ID(RadialGradient,"$Id$");
);
ret.push_back(ParamDesc("zigzag")
- .set_local_name(_("Zig-Zag"))
+ .set_local_name(_("ZigZag"))
);
return ret;
float
-RadialGradient::calc_supersample(const synfig::Point &x, float pw,float ph)const
+RadialGradient::calc_supersample(const synfig::Point &/*x*/, float pw,float /*ph*/)const
{
// return sqrt(pw*pw+ph*ph)/radius;
return 1.2*pw/radius;