mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-03 10:46:57 +13:00
Force proportional resizing in magnify tool
This commit is contained in:
parent
7d71c6bd45
commit
d27a7de529
2 changed files with 8 additions and 1 deletions
|
@ -97,6 +97,8 @@ private set
|
||||||
|
|
||||||
public virtual bool IsSelectable => Manager.CurrentTool == ShapeType || Manager.CurrentTool == ShapeType.ToolSelect;
|
public virtual bool IsSelectable => Manager.CurrentTool == ShapeType || Manager.CurrentTool == ShapeType.ToolSelect;
|
||||||
|
|
||||||
|
public bool ForceProportionalResizing { get; protected set; }
|
||||||
|
|
||||||
internal ShapeManager Manager { get; set; }
|
internal ShapeManager Manager { get; set; }
|
||||||
|
|
||||||
protected InputManager InputManager => Manager.InputManager;
|
protected InputManager InputManager => Manager.InputManager;
|
||||||
|
@ -246,7 +248,7 @@ public virtual void OnUpdate()
|
||||||
StartPosition = StartPosition.Add(InputManager.MouseVelocity);
|
StartPosition = StartPosition.Add(InputManager.MouseVelocity);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Manager.IsProportionalResizing)
|
if (Manager.IsProportionalResizing || ForceProportionalResizing)
|
||||||
{
|
{
|
||||||
float degree, startDegree;
|
float degree, startDegree;
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,11 @@ public class MagnifyDrawingShape : EllipseDrawingShape
|
||||||
|
|
||||||
public int MagnifyStrength { get; set; } = 200;
|
public int MagnifyStrength { get; set; } = 200;
|
||||||
|
|
||||||
|
public MagnifyDrawingShape()
|
||||||
|
{
|
||||||
|
ForceProportionalResizing = true;
|
||||||
|
}
|
||||||
|
|
||||||
public override void OnConfigLoad()
|
public override void OnConfigLoad()
|
||||||
{
|
{
|
||||||
base.OnConfigLoad();
|
base.OnConfigLoad();
|
||||||
|
|
Loading…
Reference in a new issue