mirror of https://github.com/GNOME/gimp.git
Allow full range to Hue-Saturation Lightness slider
Issue #427: Hue-saturation dialog: lightness in 'Master' For whatever reason that made sense at the time, the current Hue-Saturation code divides the result of Lightness slider adjustments by 2, which means the user can't ever move the Lightness slider to produce a solid white or black image, and requires multiple iterations if the user wants to make the image very light or very dark. This patch just removes the division by 2, thus allowing the full range of Lightness changes without having to use multiple iterations.
This commit is contained in:
parent
b6b8e2c28d
commit
7880711fef
|
@ -154,7 +154,7 @@ map_lightness (GimpHueSaturationConfig *config,
|
|||
GimpHueRange range,
|
||||
gdouble value)
|
||||
{
|
||||
gdouble v = (config->lightness[GIMP_HUE_RANGE_ALL] + config->lightness[range]) / 2.0;
|
||||
gdouble v = (config->lightness[GIMP_HUE_RANGE_ALL] + config->lightness[range]);
|
||||
|
||||
if (v < 0)
|
||||
return value * (v + 1.0);
|
||||
|
|
Loading…
Reference in New Issue