mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-07 07:26:05 +12:00
Fix rounded rectangle region 1 off issue
This commit is contained in:
parent
90307fe841
commit
2d6853029c
|
@ -77,7 +77,7 @@ public override void OnDraw(Graphics g)
|
|||
|
||||
public override void OnShapePathRequested(GraphicsPath gp, Rectangle rect)
|
||||
{
|
||||
gp.AddRoundedRectangle(rect, Radius);
|
||||
gp.AddRoundedRectangle(rect, Radius, 0);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -47,7 +47,7 @@ public override void OnConfigSave()
|
|||
|
||||
public override void OnShapePathRequested(GraphicsPath gp, Rectangle rect)
|
||||
{
|
||||
gp.AddRoundedRectangle(rect, Radius);
|
||||
gp.AddRoundedRectangle(rect, Radius, 0);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -163,8 +163,16 @@ public bool IsCurrentShapeTypeRegion
|
|||
{
|
||||
get
|
||||
{
|
||||
return CurrentShapeType == ShapeType.RegionRectangle || CurrentShapeType == ShapeType.RegionRoundedRectangle || CurrentShapeType == ShapeType.RegionEllipse ||
|
||||
CurrentShapeType == ShapeType.RegionFreehand;
|
||||
switch (CurrentShapeType)
|
||||
{
|
||||
case ShapeType.RegionRectangle:
|
||||
case ShapeType.RegionRoundedRectangle:
|
||||
case ShapeType.RegionEllipse:
|
||||
case ShapeType.RegionFreehand:
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue