gimp r26885 - in trunk: . app/gegl
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26885 - in trunk: . app/gegl
- Date: Sat, 6 Sep 2008 11:26:22 +0000 (UTC)
Author: mitch
Date: Sat Sep 6 11:26:21 2008
New Revision: 26885
URL: http://svn.gnome.org/viewvc/gimp?rev=26885&view=rev
Log:
2008-09-06 Michael Natterer <mitch gimp org>
* app/gegl/gimpoperationhuesaturation.c
(gimp_operation_hue_saturation_process): don't use // for comments.
Modified:
trunk/ChangeLog
trunk/app/gegl/gimpoperationhuesaturation.c
Modified: trunk/app/gegl/gimpoperationhuesaturation.c
==============================================================================
--- trunk/app/gegl/gimpoperationhuesaturation.c (original)
+++ trunk/app/gegl/gimpoperationhuesaturation.c Sat Sep 6 11:26:21 2008
@@ -211,11 +211,12 @@
gdouble mapped_secondary_hue;
gdouble diff;
- mapped_primary_hue = map_hue (config, hue, hsl.h);
+ mapped_primary_hue = map_hue (config, hue, hsl.h);
mapped_secondary_hue = map_hue (config, secondary_hue, hsl.h);
- // Find nearest hue on the circle between primary and
- // secondary hue
+ /* Find nearest hue on the circle between primary and
+ * secondary hue
+ */
diff = mapped_primary_hue - mapped_secondary_hue;
if (diff < -0.5)
{
@@ -226,14 +227,14 @@
mapped_secondary_hue += 1.0;
}
- hsl.h = mapped_primary_hue * primary_intensity +
- mapped_secondary_hue * secondary_intensity;
+ hsl.h = (mapped_primary_hue * primary_intensity +
+ mapped_secondary_hue * secondary_intensity);
- hsl.s = map_saturation (config, hue, hsl.s) * primary_intensity +
- map_saturation (config, secondary_hue, hsl.s) * secondary_intensity;
+ hsl.s = (map_saturation (config, hue, hsl.s) * primary_intensity +
+ map_saturation (config, secondary_hue, hsl.s) * secondary_intensity);
- hsl.l = map_lightness (config, hue, hsl.l) * primary_intensity +
- map_lightness (config, secondary_hue, hsl.l) * secondary_intensity;
+ hsl.l = (map_lightness (config, hue, hsl.l) * primary_intensity +
+ map_lightness (config, secondary_hue, hsl.l) * secondary_intensity);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]