app/core/gimpcurve.c (gimp_curve_plot) formatting.

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.


svn path=/trunk/; revision=27002
This commit is contained in:
Sven Neumann 2008-09-18 21:55:28 +00:00 committed by Sven Neumann
parent 1f788a5af2
commit c6be62a797
3 changed files with 15 additions and 10 deletions

View File

@ -1,3 +1,9 @@
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.
2008-09-18 Simon Budig <simon@gimp.org>
* app/core/gimpcurve.c: comment fix

View File

@ -1004,8 +1004,7 @@ gimp_curve_plot (GimpCurve *curve,
* 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 @@ gimp_curve_plot (GimpCurve *curve,
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 @@ gimp_curve_plot (GimpCurve *curve,
* 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;
}

View File

@ -598,8 +598,11 @@ gimp_levels_config_to_curves_config (GimpLevelsConfig *config)
{
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],