Commit 99e5f24b authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: GdipDrawLine ignores 0-pixel pens.

parent 96eac487
...@@ -3306,6 +3306,12 @@ GpStatus WINGDIPAPI GdipDrawLine(GpGraphics *graphics, GpPen *pen, REAL x1, ...@@ -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); 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].X = x1;
pt[0].Y = y1; pt[0].Y = y1;
pt[1].X = x2; pt[1].X = x2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment