mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-07 07:26:05 +12:00
Only draw tail if it is required
This commit is contained in:
parent
ee5849ec53
commit
053745a66b
|
@ -54,7 +54,10 @@ public override void OnNodeVisible()
|
||||||
|
|
||||||
public override void OnDraw(Graphics g)
|
public override void OnDraw(Graphics g)
|
||||||
{
|
{
|
||||||
DrawTail(g);
|
if (Rectangle.Width > 10 && Rectangle.Height > 10 && !Rectangle.Contains(TailNode.Position))
|
||||||
|
{
|
||||||
|
DrawTail(g);
|
||||||
|
}
|
||||||
|
|
||||||
base.OnDraw(g);
|
base.OnDraw(g);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue