mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 12:14:45 +13:00
commit
d2904b3740
5 changed files with 8 additions and 7 deletions
|
@ -125,11 +125,11 @@ public virtual void Resize(int x, int y, bool fromBottomRight)
|
|||
{
|
||||
if (fromBottomRight)
|
||||
{
|
||||
Rectangle = Rectangle.SizeOffset(x, y);
|
||||
EndPosition = EndPosition.Add(x, y);
|
||||
}
|
||||
else
|
||||
{
|
||||
Rectangle = Rectangle.LocationOffset(x, y).SizeOffset(-x, -y);
|
||||
StartPosition = StartPosition.Add(x, y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -55,7 +55,8 @@ public void SetImage(Image img, bool centerImage)
|
|||
location = Rectangle.Location;
|
||||
}
|
||||
|
||||
Rectangle = new Rectangle(location, size);
|
||||
StartPosition = location;
|
||||
EndPosition = new Point(location.X + size.Width - 1, location.Y + size.Height - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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