gdiplus: GdipDrawLine ignores 0-pixel pens.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Vincent Povirk 2016-10-13 16:23:14 -05:00 committed by Alexandre Julliard
parent 96eac4876c
commit 99e5f24b6d
1 changed files with 6 additions and 0 deletions

View File

@ -3306,6 +3306,12 @@ GpStatus WINGDIPAPI GdipDrawLine(GpGraphics *graphics, GpPen *pen, REAL x1,
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f)\n", graphics, pen, x1, y1, x2, y2);
if (!pen)
return InvalidParameter;
if (pen->unit == UnitPixel && pen->width <= 0.0)
return Ok;
pt[0].X = x1;
pt[0].Y = y1;
pt[1].X = x2;