[gimp] app: Fix direction in strokig with dynamics.



commit b771bf9879da9986cd545af288462bd98eacf4ed
Author: Alexia Death <alexiadeath gmail com>
Date:   Sat Feb 20 12:35:07 2010 +0200

    app: Fix direction in strokig with dynamics.

 app/paint/gimppaintcore-stroke.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/paint/gimppaintcore-stroke.c b/app/paint/gimppaintcore-stroke.c
index dabe73e..d746ac6 100644
--- a/app/paint/gimppaintcore-stroke.c
+++ b/app/paint/gimppaintcore-stroke.c
@@ -332,7 +332,7 @@ gimp_paint_core_stroke_vectors (GimpPaintCore     *core,
   if (! initialized && due_to_lack_of_points && *error == NULL)
     {
       g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
-			   _("Not enough points to stroke"));
+                           _("Not enough points to stroke"));
     }
 
   return initialized;
@@ -392,7 +392,7 @@ gimp_paint_core_stroke_emulate_dynamics (GimpCoords *coords,
             }
           else
             {
-              coords[i].direction = atan (delta_y / delta_x) / (2 * G_PI);
+              coords[i].direction = 1.0 - atan (delta_y / delta_x) / (2 * G_PI);
               if (delta_x > 0.0)
                 coords[i].direction = coords[i].direction + 0.5;
             }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]