[gimp] Allow full range to Hue-Saturation Lightness slider
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Allow full range to Hue-Saturation Lightness slider
- Date: Fri, 6 Sep 2019 08:46:21 +0000 (UTC)
commit 7880711fef2f536482f9cb68264b0fc542145716
Author: Elle Stone <ellestone ninedegreesbelow com>
Date: Mon Jul 22 09:50:46 2019 -0400
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.
app/operations/gimpoperationhuesaturation.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/operations/gimpoperationhuesaturation.c b/app/operations/gimpoperationhuesaturation.c
index cdfb7d7233..f4f1907feb 100644
--- a/app/operations/gimpoperationhuesaturation.c
+++ b/app/operations/gimpoperationhuesaturation.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]