X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftags%2Fstable%2Fsrc%2Fmodules%2Fmod_noise%2Fdistort.cpp;h=6322dc46ee7e692d30fdb787f1fb2b769a818671;hb=882d07ee047a39f22beb7b77e120e1fe2ca4358e;hp=c9571d374cc4523d4aed72c206e62a37fd0068af;hpb=d3408370fc3297609b3aa8d4ff7edf1f238df251;p=synfig.git diff --git a/synfig-core/tags/stable/src/modules/mod_noise/distort.cpp b/synfig-core/tags/stable/src/modules/mod_noise/distort.cpp index c9571d3..6322dc4 100644 --- a/synfig-core/tags/stable/src/modules/mod_noise/distort.cpp +++ b/synfig-core/tags/stable/src/modules/mod_noise/distort.cpp @@ -6,6 +6,7 @@ ** ** \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 @@ -74,7 +75,7 @@ NoiseDistort::NoiseDistort(): } 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); @@ -84,7 +85,8 @@ NoiseDistort::color_func(const Point &point, float supersample,Context context)c 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); @@ -120,7 +122,7 @@ NoiseDistort::color_func(const Point &point, float supersample,Context context)c } 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; } @@ -154,7 +156,7 @@ NoiseDistort::hit_check(synfig::Context context, const synfig::Point &point)cons 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;