[PATCH 4/4] gdiplus: Only draw filled arrows with positive height.

Nikolay Sivov nsivov at codeweavers.com
Sun May 13 23:59:37 CDT 2018


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/gdiplus/graphics.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 5fdbaf1e8a..76aabe74bf 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -1692,6 +1692,13 @@ static void draw_cap(GpGraphics *graphics, COLORREF color, GpLineCap cap, REAL s
             if(!custom)
                 break;
 
+            if (custom->type == CustomLineCapTypeAdjustableArrow)
+            {
+                GpAdjustableArrowCap *arrow = (GpAdjustableArrowCap *)custom;
+                if (arrow->cap.fill && arrow->height <= 0.0)
+                    break;
+            }
+
             count = custom->pathdata.Count;
             custptf = heap_alloc_zero(count * sizeof(PointF));
             custpt = heap_alloc_zero(count * sizeof(POINT));
-- 
2.17.0




More information about the wine-devel mailing list