/* === S Y N F I G ========================================================= */
-/*! \file noise.cpp
+/*! \file distort.cpp
** \brief blehh
**
-** $Id: distort.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
+** $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_SET_LOCAL_NAME(NoiseDistort,_("Noise Distort"));
SYNFIG_LAYER_SET_CATEGORY(NoiseDistort,_("Distortions"));
SYNFIG_LAYER_SET_VERSION(NoiseDistort,"0.0");
-SYNFIG_LAYER_SET_CVS_ID(NoiseDistort,"$Id: distort.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $");
+SYNFIG_LAYER_SET_CVS_ID(NoiseDistort,"$Id$");
/* === P R O C E D U R E S ================================================= */
}
inline Color
-NoiseDistort::color_func(const Point &point, float supersample,Context context)const
+NoiseDistort::color_func(const Point &point, float /*supersample*/,Context context)const
{
Color ret(0,0,0,0);
int i;
Time time;
time=speed*curr_time;
- int smooth((!speed && smooth==3)?5:smooth);
+ int temp_smooth(smooth);
+ int smooth((!speed && temp_smooth==3)?5:temp_smooth);
{
Vector vect(0,0);
}
inline float
-NoiseDistort::calc_supersample(const synfig::Point &x, float pw,float ph)const
+NoiseDistort::calc_supersample(const synfig::Point &/*x*/, float /*pw*/,float /*ph*/)const
{
return 0.0f;
}
bool
NoiseDistort::set_param(const String & param, const ValueBase &value)
{
- if(param=="seed" && value.same_as(int()))
+ if(param=="seed" && value.same_type_as(int()))
{
random.set_seed(value.get(int()));
return true;