gimp r24560 - in trunk: . app/tools



Author: ok
Date: Mon Jan  7 15:36:02 2008
New Revision: 24560
URL: http://svn.gnome.org/viewvc/gimp?rev=24560&view=rev

Log:
* app/tools/gimpbrightnesscontrasttool.c: make the mapping between
slider values and gegl-op properties more closely resemble gimp for
the brightness property.


Modified:
   trunk/ChangeLog
   trunk/app/tools/gimpbrightnesscontrasttool.c

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Mon Jan  7 15:36:02 2008
@@ -1,3 +1,9 @@
+2008-01-07  Ãyvind KolÃs  <pippin gimp org>
+
+	* app/tools/gimpbrightnesscontrasttool.c: make the mapping between
+	slider values and gegl-op properties more closely resemble gimp for
+	the brightness property.
+
 2008-01-07  Michael Natterer  <mitch gimp org>
 
 	* app/gegl/gegl/gegl-operation.h: updated from GEGL.

Modified: trunk/app/tools/gimpbrightnesscontrasttool.c
==============================================================================
--- trunk/app/tools/gimpbrightnesscontrasttool.c	(original)
+++ trunk/app/tools/gimpbrightnesscontrasttool.c	Mon Jan  7 15:36:02 2008
@@ -197,7 +197,7 @@
       gdouble brightness;
       gdouble contrast;
 
-      brightness = bc_tool->brightness / 127.0;
+      brightness = bc_tool->brightness / 256.0;
       contrast   = (bc_tool->contrast < 0 ?
                     (bc_tool->contrast + 127.0) / 127.0 :
                     bc_tool->contrast * 4.0 / 127.0 + 1);



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