[gimp] Fixed error from last commit



commit 9b595f3b10b2bba42a31b32697dd7d501de89eca
Author: SHIRAKAWA Akira <shirakawa devel gmail com>
Date:   Thu Oct 8 23:22:21 2009 +0200

    Fixed error from last commit
    
    Forgot to check for operator precedence
    
    Signed-off-by: SHIRAKAWA Akira <shirakawa devel gmail com>

 app/paint/gimpairbrush.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/paint/gimpairbrush.c b/app/paint/gimpairbrush.c
index f78a5b8..c2d3b54 100644
--- a/app/paint/gimpairbrush.c
+++ b/app/paint/gimpairbrush.c
@@ -192,7 +192,7 @@ gimp_airbrush_motion (GimpPaintCore    *paint_core,
     opacity *= coords->pressure;
 
   if (saved_velocity)
-    opacity *= MAX (0.0, coords->velocity);
+    opacity *= MAX (0.0, 1 - coords->velocity);
 
   paint_options->pressure_options->hardness = FALSE;
   paint_options->velocity_options->hardness = FALSE;



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