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>
This commit is contained in:
parent
39c8ebddcc
commit
9ffc6e600e
|
@ -1692,6 +1692,13 @@ static void draw_cap(GpGraphics *graphics, COLORREF color, GpLineCap cap, REAL s
|
||||||
if(!custom)
|
if(!custom)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if (custom->type == CustomLineCapTypeAdjustableArrow)
|
||||||
|
{
|
||||||
|
GpAdjustableArrowCap *arrow = (GpAdjustableArrowCap *)custom;
|
||||||
|
if (arrow->cap.fill && arrow->height <= 0.0)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
count = custom->pathdata.Count;
|
count = custom->pathdata.Count;
|
||||||
custptf = heap_alloc_zero(count * sizeof(PointF));
|
custptf = heap_alloc_zero(count * sizeof(PointF));
|
||||||
custpt = heap_alloc_zero(count * sizeof(POINT));
|
custpt = heap_alloc_zero(count * sizeof(POINT));
|
||||||
|
|
Loading…
Reference in New Issue