X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Flyr_std%2Fmandelbrot.cpp;h=bacbbdaac77009c7001a4c67b6bdfa531e989c75;hb=334e15ce6c4d9b1f30a168a55e7ef4d31320d568;hp=bd616085851f3f4a4441ec9ba51ec0d5a9115ea3;hpb=cc54c38609ee9745ad678e5e9b9d7d2912be9c95;p=synfig.git diff --git a/synfig-core/trunk/src/modules/lyr_std/mandelbrot.cpp b/synfig-core/trunk/src/modules/lyr_std/mandelbrot.cpp index bd61608..bacbbda 100644 --- a/synfig-core/trunk/src/modules/lyr_std/mandelbrot.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/mandelbrot.cpp @@ -1,9 +1,12 @@ /* === S Y N F I G ========================================================= */ /*! \file mandelbrot.cpp -** \brief Template Header +** \brief Implementation of the "Mandelbrot Set" 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 @@ -50,8 +53,8 @@ SYNFIG_LAYER_INIT(Mandelbrot); SYNFIG_LAYER_SET_NAME(Mandelbrot,"mandelbrot"); -SYNFIG_LAYER_SET_LOCAL_NAME(Mandelbrot,_("Mandelbrot Set")); -SYNFIG_LAYER_SET_CATEGORY(Mandelbrot,_("Fractals")); +SYNFIG_LAYER_SET_LOCAL_NAME(Mandelbrot,N_("Mandelbrot Set")); +SYNFIG_LAYER_SET_CATEGORY(Mandelbrot,N_("Fractals")); SYNFIG_LAYER_SET_VERSION(Mandelbrot,"0.2"); SYNFIG_LAYER_SET_CVS_ID(Mandelbrot,"$Id$"); @@ -144,7 +147,7 @@ Mandelbrot::set_param(const String & param, const ValueBase &value) IMPORT(gradient_inside); IMPORT(gradient_outside); - if(param=="iterations" && value.same_as(iterations)) + if(param=="iterations" && value.same_type_as(iterations)) { iterations=value.get(iterations); if(iterations<0) @@ -153,7 +156,7 @@ Mandelbrot::set_param(const String & param, const ValueBase &value) iterations=500000; return true; } - if(param=="bailout" && value.same_as(bailout)) + if(param=="bailout" && value.same_type_as(bailout)) { bailout=value.get(bailout); bailout*=bailout; @@ -294,7 +297,7 @@ Mandelbrot::get_color(Context context, const Point &pos)const zr_hold; ColorReal - depth, mag; + depth, mag(0); Color ret;