gimp r27002 - in trunk: . app/core app/gegl



Author: neo
Date: Thu Sep 18 21:55:28 2008
New Revision: 27002
URL: http://svn.gnome.org/viewvc/gimp?rev=27002&view=rev

Log:
2008-09-18  Sven Neumann  <sven gimp org>

	* app/core/gimpcurve.c (gimp_curve_plot)
	* app/gegl/gimplevelsconfig.c 
(gimp_levels_config_to_curves_config):
	formatting.



Modified:
   trunk/ChangeLog
   trunk/app/core/gimpcurve.c
   trunk/app/gegl/gimplevelsconfig.c

Modified: trunk/app/core/gimpcurve.c
==============================================================================
--- trunk/app/core/gimpcurve.c	(original)
+++ trunk/app/core/gimpcurve.c	Thu Sep 18 21:55:28 2008
@@ -1004,8 +1004,7 @@
        * the control handle of the right tangent, to ensure that the curve
        * does not have an inflection point.
        */
-      slope = (curve->points[p4].y - y0) /
-              (curve->points[p4].x - x0);
+      slope = (curve->points[p4].y - y0) / (curve->points[p4].x - x0);
 
       y2 = y3 - slope * dx / 3.0;
       y1 = y0 + (y2 - y0) / 2.0;
@@ -1013,8 +1012,7 @@
   else if (p1 != p2 && p3 == p4)
     {
       /* see previous case */
-      slope = (y3 - curve->points[p1].y) /
-              (x3 - curve->points[p1].x);
+      slope = (y3 - curve->points[p1].y) / (x3 - curve->points[p1].x);
 
       y1 = y0 + slope * dx / 3.0;
       y2 = y3 + (y1 - y3) / 2.0;
@@ -1025,13 +1023,11 @@
        * parallel to the line between the opposite endpoint and the adjacent
        * neighbor.
        */
-      slope = (y3 - curve->points[p1].y) /
-              (x3 - curve->points[p1].x);
+      slope = (y3 - curve->points[p1].y) / (x3 - curve->points[p1].x);
 
       y1 = y0 + slope * dx / 3.0;
 
-      slope = (curve->points[p4].y - y0) /
-              (curve->points[p4].x - x0);
+      slope = (curve->points[p4].y - y0) / (curve->points[p4].x - x0);
 
       y2 = y3 - slope * dx / 3.0;
     }

Modified: trunk/app/gegl/gimplevelsconfig.c
==============================================================================
--- trunk/app/gegl/gimplevelsconfig.c	(original)
+++ trunk/app/gegl/gimplevelsconfig.c	Thu Sep 18 21:55:28 2008
@@ -598,8 +598,11 @@
     {
       GimpCurve *curve = curves->curve[channel];
       gdouble    gamma = config->gamma[channel];
-      gdouble    delta_in  = config->high_input[channel] - config->low_input[channel];
-      gdouble    delta_out = config->high_output[channel] - config->low_output[channel];
+      gdouble    delta_in;
+      gdouble    delta_out;
+
+      delta_in  = config->high_input[channel] - config->low_input[channel];
+      delta_out = config->high_output[channel] - config->low_output[channel];
 
       gimp_curve_set_point (curve, 0,
                             config->low_input[channel],



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