Vincent Povirk : gdiplus: GdipDrawLine ignores 0-pixel pens.
Alexandre Julliard
julliard at winehq.org
Fri Oct 14 13:46:53 CDT 2016
Module: wine
Branch: master
Commit: 99e5f24b6d0eae88a03034fd8025c459a42776a9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=99e5f24b6d0eae88a03034fd8025c459a42776a9
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Oct 13 16:23:14 2016 -0500
gdiplus: GdipDrawLine ignores 0-pixel pens.
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list