mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Use round cap for line drawing
This commit is contained in:
parent
9f6bac3856
commit
029d63f457
2 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,7 @@ protected override void DrawLine(Graphics g, Pen pen)
|
|||
{
|
||||
pen.CustomEndCap = arrowCap;
|
||||
|
||||
base.DrawLine(g, pen);
|
||||
g.DrawLine(pen, StartPosition, EndPosition);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,6 +58,9 @@ public override void OnDraw(Graphics g)
|
|||
|
||||
protected virtual void DrawLine(Graphics g, Pen pen)
|
||||
{
|
||||
pen.StartCap = LineCap.Round;
|
||||
pen.EndCap = LineCap.Round;
|
||||
|
||||
g.DrawLine(pen, StartPosition, EndPosition);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue