[gimp] Bug 758769 - Smudge tool not working correctly...



commit ca189b7a905f4bcb1a1f4d4103303c53202c8892
Author: Thomas Manni <thomas manni free fr>
Date:   Sun Dec 27 20:34:50 2015 +0100

    Bug 758769 - Smudge tool not working correctly...
    
    ...with alpha layers creates black edges
    
    Fix the missing division in the pixels blending formula

 app/gegl/gimp-gegl-loops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-loops.c b/app/gegl/gimp-gegl-loops.c
index 22c38f3..2707301 100644
--- a/app/gegl/gimp-gegl-loops.c
+++ b/app/gegl/gimp-gegl-loops.c
@@ -394,7 +394,7 @@ gimp_gegl_smudge_blend (GeglBuffer          *top_buffer,
             {
               for (b = 0; b < 3; b++)
                 dest[b] =
-                  bottom[b] + (bottom[b] * a1 + top[b] * a2 - a * bottom[b]);
+                  bottom[b] + (bottom[b] * a1 + top[b] * a2 - a * bottom[b]) / a;
 
               dest[3] = a;
             }


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