From ee5849ec538a62fe50cd4bf5ff3fc0bc83de0a2d Mon Sep 17 00:00:00 2001 From: Jaex Date: Wed, 24 Aug 2016 19:50:27 +0300 Subject: [PATCH] Clip balloon rectangle while drawing tail --- .../Shapes/Drawing/SpeechBalloonDrawingShape.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ShareX.ScreenCaptureLib/Shapes/Drawing/SpeechBalloonDrawingShape.cs b/ShareX.ScreenCaptureLib/Shapes/Drawing/SpeechBalloonDrawingShape.cs index 3fb017b58..67cfe4756 100644 --- a/ShareX.ScreenCaptureLib/Shapes/Drawing/SpeechBalloonDrawingShape.cs +++ b/ShareX.ScreenCaptureLib/Shapes/Drawing/SpeechBalloonDrawingShape.cs @@ -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()