mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-06 05:48:26 +12: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)
|
private void DrawTail(Graphics g)
|
||||||
{
|
{
|
||||||
|
g.ExcludeClip(Rectangle);
|
||||||
|
|
||||||
using (GraphicsPath gpTail = new GraphicsPath())
|
using (GraphicsPath gpTail = new GraphicsPath())
|
||||||
{
|
{
|
||||||
Point center = Rectangle.Center();
|
Point center = Rectangle.Center();
|
||||||
|
@ -96,6 +98,8 @@ private void DrawTail(Graphics g)
|
||||||
|
|
||||||
g.ResetTransform();
|
g.ResetTransform();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g.ResetClip();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnNodeUpdate()
|
public override void OnNodeUpdate()
|
||||||
|
|
Loading…
Reference in a new issue