Module: wine Branch: master Commit: 9ffc6e600e435066cc10ccfa58046b76cb41f267 URL: https://source.winehq.org/git/wine.git/?a=commit;h=9ffc6e600e435066cc10ccfa5...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon May 14 07:59:37 2018 +0300
gdiplus: Only draw filled arrows with positive height.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Vincent Povirk vincent@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/gdiplus/graphics.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 5fdbaf1..76aabe7 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));