[gimp/metadata-browser] app: kill more clamping in a levels utility function



commit e4368edac7e0b9bdb3e0b29e57c729bf1c3a7ac9
Author: Michael Natterer <mitch gimp org>
Date:   Tue May 1 13:24:46 2012 +0200

    app: kill more clamping in a levels utility function

 app/gegl/gimpoperationlevels.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/app/gegl/gimpoperationlevels.c b/app/gegl/gimpoperationlevels.c
index c6e28dc..2c62670 100644
--- a/app/gegl/gimpoperationlevels.c
+++ b/app/gegl/gimpoperationlevels.c
@@ -179,12 +179,8 @@ gimp_operation_levels_map_input (GimpLevelsConfig     *config,
   else
     value = (value - config->low_input[channel]);
 
-  value = CLAMP (value, 0.0, 1.0);
-
   if (config->gamma[channel] != 0.0)
-    {
-      value = pow (value, 1.0 / config->gamma[channel]);
-    }
+    value = pow (value, 1.0 / config->gamma[channel]);
 
   return value;
 }



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