mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Fix shapes being 1px bigger
This commit is contained in:
parent
eaac08413c
commit
b902e33593
3 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ public void UpdateCursor(IntPtr cursorHandle, Point position)
|
|||
cursorBitmap = icon.ToBitmap();
|
||||
|
||||
StartPosition = position;
|
||||
EndPosition = new Point(position.X + cursorBitmap.Size.Width, position.Y + cursorBitmap.Size.Height);
|
||||
EndPosition = new Point(position.X + cursorBitmap.Size.Width - 1, position.Y + cursorBitmap.Size.Height - 1);
|
||||
}
|
||||
|
||||
public override void ShowNodes()
|
||||
|
|
|
@ -41,7 +41,7 @@ public class StepDrawingShape : EllipseDrawingShape
|
|||
public StepDrawingShape()
|
||||
{
|
||||
StartPosition = new Point(0, 0);
|
||||
EndPosition = new Point(DefaultSize, DefaultSize);
|
||||
EndPosition = new Point(DefaultSize - 1, DefaultSize - 1);
|
||||
}
|
||||
|
||||
public override void ShowNodes()
|
||||
|
@ -53,7 +53,7 @@ public override void OnCreating()
|
|||
Manager.IsMoving = true;
|
||||
Point pos = InputManager.ClientMousePosition;
|
||||
StartPosition = new Point(pos.X - DefaultSize / 2, pos.Y - DefaultSize / 2);
|
||||
EndPosition = new Point(pos.X + DefaultSize / 2, pos.Y + DefaultSize / 2);
|
||||
EndPosition = new Point(pos.X + DefaultSize / 2 - 1, pos.Y + DefaultSize / 2 - 1);
|
||||
}
|
||||
|
||||
public override void OnConfigLoad()
|
||||
|
|
|
@ -164,7 +164,7 @@ public void AutoSize(bool center)
|
|||
}
|
||||
|
||||
StartPosition = location;
|
||||
EndPosition = new Point(location.X + size.Width, location.Y + size.Height);
|
||||
EndPosition = new Point(location.X + size.Width - 1, location.Y + size.Height - 1);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue