Commit deafe3d3 authored by Michael Natterer's avatar Michael Natterer 😴

app: remove some entirely useless members from GimpTransformTool

parent 6c524ea1
......@@ -382,8 +382,8 @@ gimp_transform_tool_button_press (GimpTool *tool,
if (tr_tool->function == TRANSFORM_CREATING)
gimp_transform_tool_oper_update (tool, coords, state, TRUE, display);
tr_tool->lastx = tr_tool->startx = coords->x;
tr_tool->lasty = tr_tool->starty = coords->y;
tr_tool->lastx = coords->x;
tr_tool->lasty = coords->y;
gimp_tool_control_activate (tool->control);
}
......@@ -454,9 +454,8 @@ gimp_transform_tool_motion (GimpTool *tool,
gimp_draw_tool_pause (GIMP_DRAW_TOOL (tool));
tr_tool->curx = coords->x;
tr_tool->cury = coords->y;
tr_tool->state = state;
tr_tool->curx = coords->x;
tr_tool->cury = coords->y;
/* recalculate the tool's transformation matrix */
tr_tool_class = GIMP_TRANSFORM_TOOL_GET_CLASS (tr_tool);
......
......@@ -45,17 +45,12 @@ struct _GimpTransformTool
{
GimpDrawTool parent_instance;
gdouble startx; /* starting x coord */
gdouble starty; /* starting y coord */
gdouble curx; /* current x coord */
gdouble cury; /* current y coord */
gdouble lastx; /* last x coord */
gdouble lasty; /* last y coord */
GdkModifierType state; /* state of buttons and keys */
gint x1, y1; /* upper left hand coordinate */
gint x2, y2; /* lower right hand coords */
gdouble cx, cy; /* center point (for rotation) */
......
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