gimp r26884 - in trunk: . app/gegl



Author: martinn
Date: Sat Sep  6 07:26:33 2008
New Revision: 26884
URL: http://svn.gnome.org/viewvc/gimp?rev=26884&view=rev

Log:
* app/gegl/gimpoperationhuesaturation.c
(gimp_operation_hue_saturation_process): mapped_* -> mapped_*_hue.


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 07:26:33 2008
@@ -207,27 +207,27 @@
 
       if (use_secondary_hue)
         {
-          gdouble mapped_primary;
-          gdouble mapped_secondary;
+          gdouble mapped_primary_hue;
+          gdouble mapped_secondary_hue;
           gdouble diff;
 
-          mapped_primary   = map_hue (config, hue, hsl.h);
-          mapped_secondary = map_hue (config, secondary_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
-          diff = mapped_primary - mapped_secondary;
+          diff = mapped_primary_hue - mapped_secondary_hue;
           if (diff < -0.5)
             {
-              mapped_secondary -= 1.0;
+              mapped_secondary_hue -= 1.0;
             }
           else if (diff >= 0.5)
             {
-              mapped_secondary += 1.0;
+              mapped_secondary_hue += 1.0;
             }
 
-          hsl.h = mapped_primary   * primary_intensity +
-                  mapped_secondary * 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;



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