Commit abb3fd7b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

applied some unrelated cleanups from a patch from Tom Lechner (from bug

2008-03-05  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.[ch]: applied some unrelated
	cleanups from a patch from Tom Lechner (from bug #167926).


svn path=/trunk/; revision=25037
parent f71fd9f8
2008-03-05 Sven Neumann <sven@gimp.org>
* app/tools/gimptransformtool.[ch]: applied some unrelated
cleanups from a patch from Tom Lechner (from bug #167926).
2008-03-05 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell.h: changed PROJ_ROUND() macros to
......
......@@ -1360,7 +1360,7 @@ gimp_transform_tool_force_expose_preview (GimpTransformTool *tr_tool)
static gint last_h = 0;
GimpDisplayShell *shell;
gdouble dx [4], dy [4];
gdouble dx[4], dy[4];
gint area_x, area_y, area_w, area_h;
gint i;
......@@ -1388,20 +1388,20 @@ gimp_transform_tool_force_expose_preview (GimpTransformTool *tr_tool)
dx + 3, dy + 3, FALSE);
/* find bounding box around preview */
area_x = area_w = (gint) dx [0];
area_y = area_h = (gint) dy [0];
area_x = area_w = (gint) dx[0];
area_y = area_h = (gint) dy[0];
for (i = 1; i < 4; i++)
{
if (dx [i] < area_x)
area_x = (gint) dx [i];
else if (dx [i] > area_w)
area_w = (gint) dx [i];
if (dx[i] < area_x)
area_x = (gint) dx[i];
else if (dx[i] > area_w)
area_w = (gint) dx[i];
if (dy [i] < area_y)
area_y = (gint) dy [i];
else if (dy [i] > area_h)
area_h = (gint) dy [i];
if (dy[i] < area_y)
area_y = (gint) dy[i];
else if (dy[i] > area_h)
area_h = (gint) dy[i];
}
area_w -= area_x;
......
......@@ -62,7 +62,7 @@ struct _GimpTransformTool
gdouble cx, cy; /* center point (for rotation) */
gdouble aspect; /* original aspect ratio */
gdouble tx1, ty1; /* transformed coords */
gdouble tx1, ty1; /* transformed handle coords */
gdouble tx2, ty2;
gdouble tx3, ty3;
gdouble tx4, ty4;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment