X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftags%2Fstable%2Fsrc%2Fmodules%2Flyr_std%2Fjulia.cpp;h=ad2478e8fd8caa6a974a73102c9f8bb47334a115;hb=609ffb6c7ad2996e4dde68b1066a27e80ed8a153;hp=bb32cd357ded6f417e4b8018034135c9f481f4f4;hpb=d3408370fc3297609b3aa8d4ff7edf1f238df251;p=synfig.git diff --git a/synfig-core/tags/stable/src/modules/lyr_std/julia.cpp b/synfig-core/tags/stable/src/modules/lyr_std/julia.cpp index bb32cd3..ad2478e 100644 --- a/synfig-core/tags/stable/src/modules/lyr_std/julia.cpp +++ b/synfig-core/tags/stable/src/modules/lyr_std/julia.cpp @@ -1,11 +1,12 @@ /* === S Y N F I G ========================================================= */ /*! \file julia.cpp -** \brief Template Header +** \brief Implementation of the "Julia 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 @@ -52,8 +53,8 @@ SYNFIG_LAYER_INIT(Julia); SYNFIG_LAYER_SET_NAME(Julia,"julia"); -SYNFIG_LAYER_SET_LOCAL_NAME(Julia,_("Julia Set")); -SYNFIG_LAYER_SET_CATEGORY(Julia,_("Fractals")); +SYNFIG_LAYER_SET_LOCAL_NAME(Julia,N_("Julia Set")); +SYNFIG_LAYER_SET_CATEGORY(Julia,N_("Fractals")); SYNFIG_LAYER_SET_VERSION(Julia,"0.1"); SYNFIG_LAYER_SET_CVS_ID(Julia,"$Id$"); @@ -143,7 +144,7 @@ Julia::set_param(const String & param, const ValueBase &value) IMPORT(smooth_outside); IMPORT(broken); - if(param=="iterations" && value.same_as(iterations)) + if(param=="iterations" && value.same_type_as(iterations)) { iterations=value.get(iterations); if(iterations<0) @@ -152,7 +153,7 @@ Julia::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; @@ -204,7 +205,7 @@ Julia::get_color(Context context, const Point &pos)const zr_hold; ColorReal - depth, mag; + depth, mag(0); Color ret;