[gimp] Make Burn mode output match Gimp 2.8 ( partial revert of bug 744265 )



commit 2b7088f6e903b215f22040c954a3361821958eb8
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Mon Mar 7 13:14:58 2016 -0800

    Make Burn mode output match Gimp 2.8 ( partial revert of bug 744265 )

 app/operations/gimpoperationburnmode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/operations/gimpoperationburnmode.c b/app/operations/gimpoperationburnmode.c
index 803e539..8822e9d 100644
--- a/app/operations/gimpoperationburnmode.c
+++ b/app/operations/gimpoperationburnmode.c
@@ -109,9 +109,9 @@ gimp_operation_burn_mode_process_pixels (gfloat              *in,
           for (b = RED; b < ALPHA; b++)
             {
               gfloat comp = 1.0 - (1.0 - in[b]) / layer[b];
+              comp = CLAMP (comp, 0.0, 1.0);
 
               out[b] = comp * ratio + in[b] * (1.0 - ratio);
-              out[b] = CLAMP (out[b], 0.0, 1.0);
             }
         }
       else


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