Add my copyright to files I've modified.
[synfig.git] / synfig-core / trunk / src / modules / mod_particle / plant.cpp
index 68f7141..bd628a7 100644 (file)
@@ -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
@@ -443,6 +444,7 @@ Plant::accelerated_render(Context context,Surface *surface,int quality, const Re
                sync();
 
        std::vector<Particle>::reverse_iterator iter;
+
        float radius(size*sqrt(1.0f/(abs(pw)*abs(ph))));
 
        int x1,y1,x2,y2;
@@ -456,6 +458,11 @@ Plant::accelerated_render(Context context,Surface *surface,int quality, const Re
                        color.set_a(1);
                }
 
+               // previously, radius was multiplied by sqrt(step)*12 only if
+               // the radius came out at less than 1 (pixel):
+               //   if (radius<=1.0f) radius*=sqrt(step)*12.0f;
+               // seems a little arbitrary - does it help?
+
                // calculate the box that this particle will be drawn as
                float x1f=(iter->point[0]-tl[0])/pw-(scaled_radius*0.5);
                float x2f=(iter->point[0]-tl[0])/pw+(scaled_radius*0.5);