mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Show SizeAll cursor on shape move
This commit is contained in:
parent
6d324d3f1a
commit
eee34635de
2 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue