reverted Dave's change since this feature has already been implemented

2002-08-06  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpmagnifytool.[ch]: reverted Dave's change
	since this feature has already been implemented properly
	(and configurable) last December.
This commit is contained in:
Sven Neumann 2002-08-06 10:55:40 +00:00 committed by Sven Neumann
parent 07ecc12c2a
commit 6d151f5fd0
3 changed files with 9 additions and 12 deletions

View File

@ -1,6 +1,12 @@
2002-08-06 Sven Neumann <sven@gimp.org>
* app/tools/gimpmagnifytool.[ch]: reverted Dave's change
since this feature has already been implemented properly
(and configurable) last December.
2002-08-05 Dave Neary <bolsh@gimp.org>
* app/tools/gimpmagnifytool.[ch]: Require a minimum
* app/tools/gimpmagnifytool.[ch]: Require a minimum
movement in the X and Y direction before we zoom in
on/out to the dragged square. Limit rather arbitrarily
set to 5. This fixes bug #86939, reported by

View File

@ -311,7 +311,6 @@ gimp_magnify_tool_motion (GimpTool *tool,
GimpDisplay *gdisp)
{
GimpMagnifyTool *magnify;
gint w, h;
if (!gimp_tool_control_is_active (tool->control))
return;
@ -320,16 +319,9 @@ gimp_magnify_tool_motion (GimpTool *tool,
gimp_draw_tool_pause (GIMP_DRAW_TOOL (tool));
w = (coords->x - magnify->x);
h = (coords->y - magnify->y);
magnify->w = (coords->x - magnify->x);
magnify->h = (coords->y - magnify->y);
if((THRESHOLD <= (w > 0 ? w : -w)) &&
(THRESHOLD <= (h > 0 ? h : -h)))
{
magnify->w = w;
magnify->h = h;
}
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
}

View File

@ -30,7 +30,6 @@
#define GIMP_IS_MAGNIFY_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_MAGNIFY_TOOL))
#define GIMP_MAGNIFY_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_MAGNIFY_TOOL, GimpMagnifyToolClass))
#define THRESHOLD 5
typedef struct _GimpMagnifyTool GimpMagnifyTool;
typedef struct _GimpMagnifyToolClass GimpMagnifyToolClass;