Vincent Povirk : gdiplus: GdipDrawLine ignores 0-pixel pens.
Module: wine Branch: master Commit: 99e5f24b6d0eae88a03034fd8025c459a42776a9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=99e5f24b6d0eae88a03034fd80... Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Thu Oct 13 16:23:14 2016 -0500 gdiplus: GdipDrawLine ignores 0-pixel pens. Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/gdiplus/graphics.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 076ed81..c75618c 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -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;
participants (1)
-
Alexandre Julliard