X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_gradient%2Fradialgradient.cpp;h=5c3d20b61523db05519b7fa8a654ddd86b978dde;hb=58ac9c8e2a4fb012ec3d163132332dfcdfc383ee;hp=13de595f57e2bc4bec4719301759d39495c1bbfa;hpb=2116b6ea1a18159e64e393d37e0c786e690bec61;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_gradient/radialgradient.cpp b/synfig-core/trunk/src/modules/mod_gradient/radialgradient.cpp index 13de595..5c3d20b 100644 --- a/synfig-core/trunk/src/modules/mod_gradient/radialgradient.cpp +++ b/synfig-core/trunk/src/modules/mod_gradient/radialgradient.cpp @@ -1,11 +1,12 @@ /* === 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 @@ -52,8 +53,8 @@ using namespace synfig; 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$"); @@ -172,7 +173,7 @@ RadialGradient::color_func(const Point &point, float supersample)const 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;