[gimp] app: make compositing of grain extract blend mode consistent



commit 75173b97d91c47142eb8f0a65bc59a37dc989169
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jan 13 14:26:05 2017 +0100

    app: make compositing of grain extract blend mode consistent

 .../layer-modes/gimpoperationgrainextract.c        |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/operations/layer-modes/gimpoperationgrainextract.c 
b/app/operations/layer-modes/gimpoperationgrainextract.c
index 733bb46..05c0793 100644
--- a/app/operations/layer-modes/gimpoperationgrainextract.c
+++ b/app/operations/layer-modes/gimpoperationgrainextract.c
@@ -96,7 +96,8 @@ gimp_operation_grain_extract_process_pixels (gfloat              *in,
     {
       gfloat comp_alpha;
 
-      comp_alpha = MIN (in[ALPHA], layer[ALPHA]) * opacity;
+      comp_alpha = layer[ALPHA] * opacity;
+
       if (has_mask)
         comp_alpha *= *mask;
 


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