mirror of https://github.com/GNOME/gimp.git
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:
parent
07ecc12c2a
commit
6d151f5fd0
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue