[gimp/metadata-browser] app: remove clamping from GimpOperationLevels, it was at a fishy place anyway



commit 7de5a7f46eb1203afb0abf0ae9809e4c0967ff6a
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 30 20:35:27 2012 +0200

    app: remove clamping from GimpOperationLevels, it was at a fishy place anyway

 app/gegl/gimpoperationlevels.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/app/gegl/gimpoperationlevels.c b/app/gegl/gimpoperationlevels.c
index 07602c7..c6e28dc 100644
--- a/app/gegl/gimpoperationlevels.c
+++ b/app/gegl/gimpoperationlevels.c
@@ -93,13 +93,8 @@ gimp_operation_levels_map (gdouble value,
   else
     value = (value - low_input);
 
-  /* clamp to new black and white points */
-  value = CLAMP (value, 0.0, 1.0);
-
   if (inv_gamma != 1.0)
-    {
-      value =  pow ( value, inv_gamma);
-    }
+    value =  pow (value, inv_gamma);
 
   /*  determine the output intensity  */
   if (high_output >= low_output)



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