mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 04:06:05 +13:00
Clip balloon rectangle while drawing tail
This commit is contained in:
parent
871b583da2
commit
ee5849ec53
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,8 @@ public override void OnDraw(Graphics g)
|
|||
|
||||
private void DrawTail(Graphics g)
|
||||
{
|
||||
g.ExcludeClip(Rectangle);
|
||||
|
||||
using (GraphicsPath gpTail = new GraphicsPath())
|
||||
{
|
||||
Point center = Rectangle.Center();
|
||||
|
@ -96,6 +98,8 @@ private void DrawTail(Graphics g)
|
|||
|
||||
g.ResetTransform();
|
||||
}
|
||||
|
||||
g.ResetClip();
|
||||
}
|
||||
|
||||
public override void OnNodeUpdate()
|
||||
|
|
Loading…
Reference in a new issue