Show SizeAll cursor on shape move

This commit is contained in:
Jaex 2017-10-17 22:39:22 +03:00
parent 6d324d3f1a
commit eee34635de
2 changed files with 6 additions and 1 deletions

View file

@ -250,7 +250,10 @@ internal void InitBackground(Image img)
public void SetDefaultCursor()
{
Cursor = defaultCursor;
if (Cursor != defaultCursor)
{
Cursor = defaultCursor;
}
}
private void RegionCaptureForm_Shown(object sender, EventArgs e)

View file

@ -665,6 +665,7 @@ private void StartRegionSelection()
if (shape != null && shape.ShapeType == CurrentShapeType) // Select shape
{
IsMoving = true;
form.Cursor = Cursors.SizeAll;
CurrentShape = shape;
SelectCurrentShape();
}
@ -683,6 +684,7 @@ private void EndRegionSelection()
IsCreating = false;
IsMoving = false;
form.SetDefaultCursor();
BaseShape shape = CurrentShape;