1997-11-25 06:05:25 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
1998-04-13 13:44:11 +08:00
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1997-11-25 06:05:25 +08:00
|
|
|
*/
|
2000-12-17 05:37:03 +08:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2001-02-04 12:51:17 +08:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
#include <gtk/gtk.h>
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2001-01-24 07:56:18 +08:00
|
|
|
#include "libgimpmath/gimpmath.h"
|
2001-01-25 06:36:18 +08:00
|
|
|
#include "libgimpwidgets/gimpwidgets.h"
|
2001-01-24 07:56:18 +08:00
|
|
|
|
2002-05-03 20:45:22 +08:00
|
|
|
#include "tools-types.h"
|
|
|
|
|
2003-09-16 01:41:18 +08:00
|
|
|
#include "core/gimp-transform-utils.h"
|
2001-05-09 10:32:03 +08:00
|
|
|
#include "core/gimpimage.h"
|
2001-11-20 02:23:43 +08:00
|
|
|
#include "core/gimpdrawable-transform.h"
|
|
|
|
#include "core/gimptoolinfo.h"
|
2001-04-25 02:43:31 +08:00
|
|
|
|
2003-08-22 09:42:57 +08:00
|
|
|
#include "widgets/gimphelp-ids.h"
|
|
|
|
|
2001-09-26 07:23:09 +08:00
|
|
|
#include "display/gimpdisplay.h"
|
2001-01-23 21:01:48 +08:00
|
|
|
|
2003-08-22 09:42:57 +08:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#warning FIXME #include "gui/gui-types.h"
|
|
|
|
#endif
|
|
|
|
#include "gui/gui-types.h"
|
2001-11-20 02:23:43 +08:00
|
|
|
#include "gui/info-dialog.h"
|
|
|
|
|
2001-04-25 02:43:31 +08:00
|
|
|
#include "gimpsheartool.h"
|
2003-04-16 00:05:52 +08:00
|
|
|
#include "gimptoolcontrol.h"
|
2003-02-09 05:12:03 +08:00
|
|
|
#include "gimptransformoptions.h"
|
1998-01-22 15:02:57 +08:00
|
|
|
|
2003-03-26 00:38:19 +08:00
|
|
|
#include "gimp-intl.h"
|
2000-12-29 23:22:01 +08:00
|
|
|
|
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
/* index into trans_info array */
|
2000-01-05 19:18:38 +08:00
|
|
|
#define HORZ_OR_VERT 0
|
|
|
|
#define XSHEAR 1
|
|
|
|
#define YSHEAR 2
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
/* the minimum movement before direction of shear can be determined (pixels) */
|
2000-01-05 19:18:38 +08:00
|
|
|
#define MIN_MOVE 5
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2000-12-31 12:07:42 +08:00
|
|
|
|
|
|
|
/* forward function declarations */
|
|
|
|
|
2002-11-18 21:10:04 +08:00
|
|
|
static void gimp_shear_tool_class_init (GimpShearToolClass *klass);
|
|
|
|
static void gimp_shear_tool_init (GimpShearTool *shear_tool);
|
2001-04-25 02:43:31 +08:00
|
|
|
|
2002-11-18 21:10:04 +08:00
|
|
|
static void gimp_shear_tool_dialog (GimpTransformTool *tr_tool);
|
|
|
|
static void gimp_shear_tool_prepare (GimpTransformTool *tr_tool,
|
|
|
|
GimpDisplay *gdisp);
|
|
|
|
static void gimp_shear_tool_motion (GimpTransformTool *tr_tool,
|
|
|
|
GimpDisplay *gdisp);
|
|
|
|
static void gimp_shear_tool_recalc (GimpTransformTool *tr_tool,
|
|
|
|
GimpDisplay *gdisp);
|
2001-04-25 02:43:31 +08:00
|
|
|
|
2002-11-18 21:10:04 +08:00
|
|
|
static void shear_info_update (GimpTransformTool *tr_tool);
|
2000-12-31 12:07:42 +08:00
|
|
|
|
2002-11-18 21:10:04 +08:00
|
|
|
static void shear_x_mag_changed (GtkWidget *widget,
|
|
|
|
GimpTransformTool *tr_tool);
|
|
|
|
static void shear_y_mag_changed (GtkWidget *widget,
|
|
|
|
GimpTransformTool *tr_tool);
|
2000-12-31 12:07:42 +08:00
|
|
|
|
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
/* variables local to this file */
|
2000-01-05 19:18:38 +08:00
|
|
|
static gdouble xshear_val;
|
|
|
|
static gdouble yshear_val;
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2001-04-25 02:43:31 +08:00
|
|
|
static GimpTransformToolClass *parent_class = NULL;
|
1998-08-15 21:34:54 +08:00
|
|
|
|
2001-04-25 02:43:31 +08:00
|
|
|
|
|
|
|
/* Public functions */
|
|
|
|
|
2003-08-22 09:42:57 +08:00
|
|
|
void
|
2002-03-29 11:50:29 +08:00
|
|
|
gimp_shear_tool_register (GimpToolRegisterCallback callback,
|
2002-05-03 19:31:08 +08:00
|
|
|
gpointer data)
|
2001-04-25 02:43:31 +08:00
|
|
|
{
|
2002-03-29 11:50:29 +08:00
|
|
|
(* callback) (GIMP_TYPE_SHEAR_TOOL,
|
2003-02-05 22:39:40 +08:00
|
|
|
GIMP_TYPE_TRANSFORM_OPTIONS,
|
|
|
|
gimp_transform_options_gui,
|
2003-06-28 19:20:37 +08:00
|
|
|
0,
|
2002-03-21 20:17:17 +08:00
|
|
|
"gimp-shear-tool",
|
2002-11-01 07:06:09 +08:00
|
|
|
_("Shear"),
|
2001-11-21 07:00:47 +08:00
|
|
|
_("Shear the layer or selection"),
|
2004-04-29 21:19:28 +08:00
|
|
|
N_("S_hear"), "<shift>S",
|
2003-08-22 09:42:57 +08:00
|
|
|
NULL, GIMP_HELP_TOOL_SHEAR,
|
2002-03-29 11:50:29 +08:00
|
|
|
GIMP_STOCK_TOOL_SHEAR,
|
2002-05-03 19:31:08 +08:00
|
|
|
data);
|
2001-04-25 02:43:31 +08:00
|
|
|
}
|
|
|
|
|
2001-08-14 22:53:55 +08:00
|
|
|
GType
|
2001-04-25 02:43:31 +08:00
|
|
|
gimp_shear_tool_get_type (void)
|
|
|
|
{
|
2001-08-14 22:53:55 +08:00
|
|
|
static GType tool_type = 0;
|
2001-04-25 02:43:31 +08:00
|
|
|
|
|
|
|
if (! tool_type)
|
|
|
|
{
|
2001-08-14 22:53:55 +08:00
|
|
|
static const GTypeInfo tool_info =
|
2001-04-25 02:43:31 +08:00
|
|
|
{
|
|
|
|
sizeof (GimpShearToolClass),
|
2001-08-14 22:53:55 +08:00
|
|
|
(GBaseInitFunc) NULL,
|
|
|
|
(GBaseFinalizeFunc) NULL,
|
|
|
|
(GClassInitFunc) gimp_shear_tool_class_init,
|
|
|
|
NULL, /* class_finalize */
|
|
|
|
NULL, /* class_data */
|
|
|
|
sizeof (GimpShearTool),
|
|
|
|
0, /* n_preallocs */
|
|
|
|
(GInstanceInitFunc) gimp_shear_tool_init,
|
2001-04-25 02:43:31 +08:00
|
|
|
};
|
|
|
|
|
2001-08-14 22:53:55 +08:00
|
|
|
tool_type = g_type_register_static (GIMP_TYPE_TRANSFORM_TOOL,
|
2003-08-22 09:42:57 +08:00
|
|
|
"GimpShearTool",
|
2001-08-14 22:53:55 +08:00
|
|
|
&tool_info, 0);
|
2001-04-25 02:43:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
return tool_type;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gimp_shear_tool_class_init (GimpShearToolClass *klass)
|
|
|
|
{
|
|
|
|
GimpTransformToolClass *trans_class;
|
|
|
|
|
2001-08-14 22:53:55 +08:00
|
|
|
trans_class = GIMP_TRANSFORM_TOOL_CLASS (klass);
|
2001-04-25 02:43:31 +08:00
|
|
|
|
2001-08-14 22:53:55 +08:00
|
|
|
parent_class = g_type_class_peek_parent (klass);
|
2001-04-25 02:43:31 +08:00
|
|
|
|
2002-11-18 21:10:04 +08:00
|
|
|
trans_class->dialog = gimp_shear_tool_dialog;
|
|
|
|
trans_class->prepare = gimp_shear_tool_prepare;
|
|
|
|
trans_class->motion = gimp_shear_tool_motion;
|
|
|
|
trans_class->recalc = gimp_shear_tool_recalc;
|
2001-04-25 02:43:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gimp_shear_tool_init (GimpShearTool *shear_tool)
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2003-10-21 05:27:34 +08:00
|
|
|
GimpTool *tool = GIMP_TOOL (shear_tool);
|
|
|
|
GimpTransformTool *tr_tool = GIMP_TRANSFORM_TOOL (shear_tool);
|
2001-04-29 04:14:32 +08:00
|
|
|
|
2002-05-03 05:03:27 +08:00
|
|
|
gimp_tool_control_set_tool_cursor (tool->control, GIMP_SHEAR_TOOL_CURSOR);
|
2002-06-17 01:13:39 +08:00
|
|
|
|
2003-10-21 05:27:34 +08:00
|
|
|
tr_tool->use_center = FALSE;
|
|
|
|
tr_tool->shell_desc = _("Shearing Information");
|
|
|
|
tr_tool->progress_text = _("Shearing...");
|
1997-11-25 06:05:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2002-11-14 19:54:57 +08:00
|
|
|
gimp_shear_tool_dialog (GimpTransformTool *tr_tool)
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2002-11-14 19:54:57 +08:00
|
|
|
info_dialog_add_spinbutton (tr_tool->info_dialog,
|
|
|
|
_("Shear Magnitude X:"),
|
|
|
|
&xshear_val,
|
|
|
|
-65536, 65536, 1, 15, 1, 1, 0,
|
|
|
|
G_CALLBACK (shear_x_mag_changed),
|
|
|
|
tr_tool);
|
|
|
|
|
|
|
|
info_dialog_add_spinbutton (tr_tool->info_dialog,
|
2004-05-12 19:37:21 +08:00
|
|
|
_("Shear Magnitude Y:"),
|
2002-11-14 19:54:57 +08:00
|
|
|
&yshear_val,
|
|
|
|
-65536, 65536, 1, 15, 1, 1, 0,
|
|
|
|
G_CALLBACK (shear_y_mag_changed),
|
|
|
|
tr_tool);
|
1998-08-15 21:34:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2002-11-14 19:54:57 +08:00
|
|
|
gimp_shear_tool_prepare (GimpTransformTool *tr_tool,
|
|
|
|
GimpDisplay *gdisp)
|
1998-08-15 21:34:54 +08:00
|
|
|
{
|
2003-02-08 01:12:21 +08:00
|
|
|
tr_tool->trans_info[HORZ_OR_VERT] = GIMP_ORIENTATION_UNKNOWN;
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->trans_info[XSHEAR] = 0.0;
|
|
|
|
tr_tool->trans_info[YSHEAR] = 0.0;
|
1998-08-15 21:34:54 +08:00
|
|
|
}
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
static void
|
2002-11-14 19:54:57 +08:00
|
|
|
gimp_shear_tool_motion (GimpTransformTool *tr_tool,
|
|
|
|
GimpDisplay *gdisp)
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2002-02-20 17:59:50 +08:00
|
|
|
gdouble diffx, diffy;
|
|
|
|
gint dir;
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2002-11-14 19:54:57 +08:00
|
|
|
diffx = tr_tool->curx - tr_tool->lastx;
|
|
|
|
diffy = tr_tool->cury - tr_tool->lasty;
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
/* If we haven't yet decided on which way to control shearing
|
|
|
|
* decide using the maximum differential
|
|
|
|
*/
|
|
|
|
|
2003-02-08 01:12:21 +08:00
|
|
|
if (tr_tool->trans_info[HORZ_OR_VERT] == GIMP_ORIENTATION_UNKNOWN)
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2000-01-05 19:18:38 +08:00
|
|
|
if (abs (diffx) > MIN_MOVE || abs (diffy) > MIN_MOVE)
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2000-01-05 19:18:38 +08:00
|
|
|
if (abs (diffx) > abs (diffy))
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2003-02-08 01:12:21 +08:00
|
|
|
tr_tool->trans_info[HORZ_OR_VERT] = GIMP_ORIENTATION_HORIZONTAL;
|
|
|
|
tr_tool->trans_info[XSHEAR] = 0.0;
|
1997-11-25 06:05:25 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2003-02-08 01:12:21 +08:00
|
|
|
tr_tool->trans_info[HORZ_OR_VERT] = GIMP_ORIENTATION_VERTICAL;
|
|
|
|
tr_tool->trans_info[XSHEAR] = 0.0;
|
1997-11-25 06:05:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
/* set the current coords to the last ones */
|
|
|
|
else
|
|
|
|
{
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->curx = tr_tool->lastx;
|
|
|
|
tr_tool->cury = tr_tool->lasty;
|
1997-11-25 06:05:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* if the direction is known, keep track of the magnitude */
|
2003-02-08 01:12:21 +08:00
|
|
|
if (tr_tool->trans_info[HORZ_OR_VERT] != GIMP_ORIENTATION_UNKNOWN)
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2002-11-14 19:54:57 +08:00
|
|
|
dir = tr_tool->trans_info[HORZ_OR_VERT];
|
|
|
|
|
|
|
|
switch (tr_tool->function)
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2000-12-29 23:22:01 +08:00
|
|
|
case TRANSFORM_HANDLE_1:
|
2003-02-08 01:12:21 +08:00
|
|
|
if (dir == GIMP_ORIENTATION_HORIZONTAL)
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->trans_info[XSHEAR] -= diffx;
|
1997-11-25 06:05:25 +08:00
|
|
|
else
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->trans_info[YSHEAR] -= diffy;
|
1997-11-25 06:05:25 +08:00
|
|
|
break;
|
2002-11-14 19:54:57 +08:00
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
case TRANSFORM_HANDLE_2:
|
2003-02-08 01:12:21 +08:00
|
|
|
if (dir == GIMP_ORIENTATION_HORIZONTAL)
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->trans_info[XSHEAR] -= diffx;
|
1997-11-25 06:05:25 +08:00
|
|
|
else
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->trans_info[YSHEAR] += diffy;
|
1997-11-25 06:05:25 +08:00
|
|
|
break;
|
2002-11-14 19:54:57 +08:00
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
case TRANSFORM_HANDLE_3:
|
2003-02-08 01:12:21 +08:00
|
|
|
if (dir == GIMP_ORIENTATION_HORIZONTAL)
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->trans_info[XSHEAR] += diffx;
|
1997-11-25 06:05:25 +08:00
|
|
|
else
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->trans_info[YSHEAR] -= diffy;
|
1997-11-25 06:05:25 +08:00
|
|
|
break;
|
2002-11-14 19:54:57 +08:00
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
case TRANSFORM_HANDLE_4:
|
2003-02-08 01:12:21 +08:00
|
|
|
if (dir == GIMP_ORIENTATION_HORIZONTAL)
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->trans_info[XSHEAR] += diffx;
|
1997-11-25 06:05:25 +08:00
|
|
|
else
|
2002-11-14 19:54:57 +08:00
|
|
|
tr_tool->trans_info[YSHEAR] += diffy;
|
1997-11-25 06:05:25 +08:00
|
|
|
break;
|
2002-11-14 19:54:57 +08:00
|
|
|
|
2000-01-05 19:18:38 +08:00
|
|
|
default:
|
|
|
|
break;
|
1997-11-25 06:05:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2000-01-05 19:18:38 +08:00
|
|
|
static void
|
2002-11-14 19:54:57 +08:00
|
|
|
gimp_shear_tool_recalc (GimpTransformTool *tr_tool,
|
|
|
|
GimpDisplay *gdisp)
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2001-11-20 02:23:43 +08:00
|
|
|
gdouble amount;
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2003-02-08 01:12:21 +08:00
|
|
|
if (tr_tool->trans_info[HORZ_OR_VERT] == GIMP_ORIENTATION_HORIZONTAL)
|
2002-11-14 19:54:57 +08:00
|
|
|
amount = tr_tool->trans_info[XSHEAR];
|
1997-11-25 06:05:25 +08:00
|
|
|
else
|
2002-11-14 19:54:57 +08:00
|
|
|
amount = tr_tool->trans_info[YSHEAR];
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2003-09-16 01:41:18 +08:00
|
|
|
gimp_transform_matrix_shear (tr_tool->x1,
|
|
|
|
tr_tool->y1,
|
|
|
|
tr_tool->x2,
|
|
|
|
tr_tool->y2,
|
|
|
|
tr_tool->trans_info[HORZ_OR_VERT],
|
|
|
|
amount,
|
|
|
|
&tr_tool->transform);
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
/* transform the bounding box */
|
2002-11-14 19:54:57 +08:00
|
|
|
gimp_transform_tool_transform_bounding_box (tr_tool);
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
/* update the information dialog */
|
2002-11-14 19:54:57 +08:00
|
|
|
shear_info_update (tr_tool);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
shear_info_update (GimpTransformTool *tr_tool)
|
|
|
|
{
|
|
|
|
xshear_val = tr_tool->trans_info[XSHEAR];
|
|
|
|
yshear_val = tr_tool->trans_info[YSHEAR];
|
|
|
|
|
|
|
|
info_dialog_update (tr_tool->info_dialog);
|
2004-01-21 19:16:57 +08:00
|
|
|
info_dialog_show (tr_tool->info_dialog);
|
2002-11-14 19:54:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2002-11-18 21:10:04 +08:00
|
|
|
shear_x_mag_changed (GtkWidget *widget,
|
|
|
|
GimpTransformTool *tr_tool)
|
2002-11-14 19:54:57 +08:00
|
|
|
{
|
2002-11-18 21:10:04 +08:00
|
|
|
gdouble value;
|
2002-11-14 19:54:57 +08:00
|
|
|
|
|
|
|
value = GTK_ADJUSTMENT (widget)->value;
|
|
|
|
|
|
|
|
if (value != tr_tool->trans_info[XSHEAR])
|
|
|
|
{
|
2002-11-18 21:10:04 +08:00
|
|
|
gimp_draw_tool_pause (GIMP_DRAW_TOOL (tr_tool));
|
2002-11-14 19:54:57 +08:00
|
|
|
|
|
|
|
tr_tool->trans_info[XSHEAR] = value;
|
|
|
|
|
2002-11-18 21:10:04 +08:00
|
|
|
gimp_shear_tool_recalc (tr_tool, GIMP_TOOL (tr_tool)->gdisp);
|
2002-11-14 19:54:57 +08:00
|
|
|
|
2002-11-18 21:10:04 +08:00
|
|
|
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tr_tool));
|
2002-11-14 19:54:57 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2002-11-18 21:10:04 +08:00
|
|
|
shear_y_mag_changed (GtkWidget *widget,
|
|
|
|
GimpTransformTool *tr_tool)
|
2002-11-14 19:54:57 +08:00
|
|
|
{
|
2002-11-18 21:10:04 +08:00
|
|
|
gdouble value;
|
2002-11-14 19:54:57 +08:00
|
|
|
|
|
|
|
value = GTK_ADJUSTMENT (widget)->value;
|
|
|
|
|
|
|
|
if (value != tr_tool->trans_info[YSHEAR])
|
|
|
|
{
|
2002-11-18 21:10:04 +08:00
|
|
|
gimp_draw_tool_pause (GIMP_DRAW_TOOL (tr_tool));
|
2002-11-14 19:54:57 +08:00
|
|
|
|
|
|
|
tr_tool->trans_info[YSHEAR] = value;
|
|
|
|
|
2002-11-18 21:10:04 +08:00
|
|
|
gimp_shear_tool_recalc (tr_tool, GIMP_TOOL (tr_tool)->gdisp);
|
2002-11-14 19:54:57 +08:00
|
|
|
|
2002-11-18 21:10:04 +08:00
|
|
|
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tr_tool));
|
2002-11-14 19:54:57 +08:00
|
|
|
}
|
1997-11-25 06:05:25 +08:00
|
|
|
}
|