GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 43a3c372 authored by Øyvind Kolås's avatar Øyvind Kolås

make the mapping between slider values and gegl-op properties more closely

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

svn path=/trunk/; revision=24560
parent d916692c
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.
......
......@@ -197,7 +197,7 @@ gimp_brightness_contrast_tool_map (GimpImageMapTool *im_tool)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment