From ad5f0566c633041148043fc60cb0103a7516a5e3 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 7 Sep 2007 19:10:48 +0000 Subject: [PATCH] Fix the 'plant' layer. git-svn-id: http://svn.voria.com/code@620 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_particle/plant.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/synfig-core/trunk/src/modules/mod_particle/plant.cpp b/synfig-core/trunk/src/modules/mod_particle/plant.cpp index 1d987f6..66d78b8 100644 --- a/synfig-core/trunk/src/modules/mod_particle/plant.cpp +++ b/synfig-core/trunk/src/modules/mod_particle/plant.cpp @@ -413,7 +413,7 @@ Plant::accelerated_render(Context context,Surface *surface,int quality, const Re std::vector::reverse_iterator iter; const float size_factor(1); - float radius(size_factor*size*sqrt(1.0f/(abs(pw)*abs(ph)))); + float radius(size_factor*size*sqrt(1.0f/(abs(pw)*abs(ph)))), temp_radius; if(radius>1.0f) { @@ -421,7 +421,8 @@ Plant::accelerated_render(Context context,Surface *surface,int quality, const Re int x1,y1,x2,y2; for(iter=particle_list.rbegin();iter!=particle_list.rend();++iter) { - float radius(radius); + temp_radius = radius; + float radius(temp_radius); Color color(iter->color); if(size_as_alpha) { @@ -469,7 +470,8 @@ Plant::accelerated_render(Context context,Surface *surface,int quality, const Re float a,b,c,d; for(iter=particle_list.rbegin();iter!=particle_list.rend();++iter) { - float radius(radius); + temp_radius = radius; + float radius(temp_radius); Color color(iter->color); if(size_as_alpha) { -- 2.7.4