Commit db76b885 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

another cursor fix.

2000-06-15  Michael Natterer  <mitch@gimp.org>

	* app/crop.c (crop_cursor_update): another cursor fix.
parent af1bd5e3
......@@ -543,7 +543,7 @@ crop_cursor_update (Tool *tool,
GDisplay *gdisp;
Crop *crop;
GdkCursorType ctype = GIMP_CROSSHAIR_SMALL_CURSOR;
GdkCursorType ctype = GIMP_MOUSE_CURSOR;
CursorModifier cmodifier = CURSOR_MODIFIER_NONE;
gdisp = (GDisplay *) gdisp_ptr;
......@@ -557,13 +557,11 @@ crop_cursor_update (Tool *tool,
else if (mevent->x == CLAMP (mevent->x, crop->x1, crop->x1 + crop->srw) &&
mevent->y == CLAMP (mevent->y, crop->y1, crop->y1 + crop->srh))
{
ctype = GIMP_MOUSE_CURSOR;
cmodifier = CURSOR_MODIFIER_RESIZE;
}
else if (mevent->x == CLAMP (mevent->x, crop->x2 - crop->srw, crop->x2) &&
mevent->y == CLAMP (mevent->y, crop->y2 - crop->srh, crop->y2))
{
ctype = GIMP_MOUSE_CURSOR;
cmodifier = CURSOR_MODIFIER_RESIZE;
}
else if (mevent->x == CLAMP (mevent->x, crop->x1, crop->x1 + crop->srw) &&
......@@ -576,10 +574,10 @@ crop_cursor_update (Tool *tool,
{
cmodifier = CURSOR_MODIFIER_MOVE;
}
else if (mevent->x > crop->x1 && mevent->x < crop->x2 &&
mevent->y > crop->y1 && mevent->y < crop->y2)
else if (! (mevent->x > crop->x1 && mevent->x < crop->x2 &&
mevent->y > crop->y1 && mevent->y < crop->y2))
{
ctype = GIMP_MOUSE_CURSOR;
ctype = GIMP_CROSSHAIR_SMALL_CURSOR;
}
gdisplay_install_tool_cursor (gdisp, ctype,
......
......@@ -543,7 +543,7 @@ crop_cursor_update (Tool *tool,
GDisplay *gdisp;
Crop *crop;
GdkCursorType ctype = GIMP_CROSSHAIR_SMALL_CURSOR;
GdkCursorType ctype = GIMP_MOUSE_CURSOR;
CursorModifier cmodifier = CURSOR_MODIFIER_NONE;
gdisp = (GDisplay *) gdisp_ptr;
......@@ -557,13 +557,11 @@ crop_cursor_update (Tool *tool,
else if (mevent->x == CLAMP (mevent->x, crop->x1, crop->x1 + crop->srw) &&
mevent->y == CLAMP (mevent->y, crop->y1, crop->y1 + crop->srh))
{
ctype = GIMP_MOUSE_CURSOR;
cmodifier = CURSOR_MODIFIER_RESIZE;
}
else if (mevent->x == CLAMP (mevent->x, crop->x2 - crop->srw, crop->x2) &&
mevent->y == CLAMP (mevent->y, crop->y2 - crop->srh, crop->y2))
{
ctype = GIMP_MOUSE_CURSOR;
cmodifier = CURSOR_MODIFIER_RESIZE;
}
else if (mevent->x == CLAMP (mevent->x, crop->x1, crop->x1 + crop->srw) &&
......@@ -576,10 +574,10 @@ crop_cursor_update (Tool *tool,
{
cmodifier = CURSOR_MODIFIER_MOVE;
}
else if (mevent->x > crop->x1 && mevent->x < crop->x2 &&
mevent->y > crop->y1 && mevent->y < crop->y2)
else if (! (mevent->x > crop->x1 && mevent->x < crop->x2 &&
mevent->y > crop->y1 && mevent->y < crop->y2))
{
ctype = GIMP_MOUSE_CURSOR;
ctype = GIMP_CROSSHAIR_SMALL_CURSOR;
}
gdisplay_install_tool_cursor (gdisp, ctype,
......
......@@ -543,7 +543,7 @@ crop_cursor_update (Tool *tool,
GDisplay *gdisp;
Crop *crop;
GdkCursorType ctype = GIMP_CROSSHAIR_SMALL_CURSOR;
GdkCursorType ctype = GIMP_MOUSE_CURSOR;
CursorModifier cmodifier = CURSOR_MODIFIER_NONE;
gdisp = (GDisplay *) gdisp_ptr;
......@@ -557,13 +557,11 @@ crop_cursor_update (Tool *tool,
else if (mevent->x == CLAMP (mevent->x, crop->x1, crop->x1 + crop->srw) &&
mevent->y == CLAMP (mevent->y, crop->y1, crop->y1 + crop->srh))
{
ctype = GIMP_MOUSE_CURSOR;
cmodifier = CURSOR_MODIFIER_RESIZE;
}
else if (mevent->x == CLAMP (mevent->x, crop->x2 - crop->srw, crop->x2) &&
mevent->y == CLAMP (mevent->y, crop->y2 - crop->srh, crop->y2))
{
ctype = GIMP_MOUSE_CURSOR;
cmodifier = CURSOR_MODIFIER_RESIZE;
}
else if (mevent->x == CLAMP (mevent->x, crop->x1, crop->x1 + crop->srw) &&
......@@ -576,10 +574,10 @@ crop_cursor_update (Tool *tool,
{
cmodifier = CURSOR_MODIFIER_MOVE;
}
else if (mevent->x > crop->x1 && mevent->x < crop->x2 &&
mevent->y > crop->y1 && mevent->y < crop->y2)
else if (! (mevent->x > crop->x1 && mevent->x < crop->x2 &&
mevent->y > crop->y1 && mevent->y < crop->y2))
{
ctype = GIMP_MOUSE_CURSOR;
ctype = GIMP_CROSSHAIR_SMALL_CURSOR;
}
gdisplay_install_tool_cursor (gdisp, ctype,
......
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