gimp r26985 - trunk/app/gegl



Author: simon
Date: Wed Sep 17 23:09:29 2008
New Revision: 26985
URL: http://svn.gnome.org/viewvc/gimp?rev=26985&view=rev

Log:
2008-09-18  Simon Budig  <simon gimp org>

	* app/gegl/gimpbrightnesscontrastconfig.c: quickfix:
	avoid last-minute-code-cleanup before checkin...



Modified:
   trunk/app/gegl/gimpbrightnesscontrastconfig.c

Modified: trunk/app/gegl/gimpbrightnesscontrastconfig.c
==============================================================================
--- trunk/app/gegl/gimpbrightnesscontrastconfig.c	(original)
+++ trunk/app/gegl/gimpbrightnesscontrastconfig.c	Wed Sep 17 23:09:29 2008
@@ -184,7 +184,7 @@
            * calculation of the brightness/contrast LUT in base/lut-funcs.h */
 
           levels->low_input[GIMP_HISTOGRAM_VALUE] =
-            (brightness * slant + 0.5 * slant - 0.5) / (slant - brightness * slant);
+            (- brightness * slant + 0.5 * slant - 0.5) / (slant - brightness * slant);
         }
 
       levels->low_output[GIMP_HISTOGRAM_VALUE] = value;
@@ -196,7 +196,7 @@
           value = 1.0;
 
           levels->high_input[GIMP_HISTOGRAM_VALUE] =
-            (brightness * slant + 0.5 * slant + 0.5) / (slant - brightness * slant);
+            (- brightness * slant + 0.5 * slant + 0.5) / (slant - brightness * slant);
         }
 
       levels->high_output[GIMP_HISTOGRAM_VALUE] = value;



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