[gimp] app: remove some entirely useless members from GimpTransformTool
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove some entirely useless members from GimpTransformTool
- Date: Sat, 26 Mar 2011 19:40:53 +0000 (UTC)
commit deafe3d341f6bb162da90ff6782ca4ce5738679a
Author: Michael Natterer <mitch gimp org>
Date: Sat Mar 26 20:40:35 2011 +0100
app: remove some entirely useless members from GimpTransformTool
app/tools/gimptransformtool.c | 9 ++++-----
app/tools/gimptransformtool.h | 5 -----
2 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 0860de6..219bdf1 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -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);
diff --git a/app/tools/gimptransformtool.h b/app/tools/gimptransformtool.h
index e466223..45d3bda 100644
--- a/app/tools/gimptransformtool.h
+++ b/app/tools/gimptransformtool.h
@@ -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) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]