[v2 1/5] gdiplus: Allow widening a "closed" line segment.

Vincent Povirk madewokherd at gmail.com
Thu Oct 13 16:23:13 CDT 2016


From: Vincent Povirk <vincent at codeweavers.com>

Turns out native allows this. I did this in my updated test
case in patch 3, to draw two disconnected lines in one path.

Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
---
 dlls/gdiplus/graphicspath.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 963ee1c..8ba0016 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -1888,7 +1888,7 @@ static void widen_closed_figure(GpPath *path, GpPen *pen, int start, int end,
     int i;
     path_list_node_t *prev_point;
 
-    if (end <= start+1)
+    if (end <= start)
         return;
 
     /* left outline */
-- 
2.7.4




More information about the wine-patches mailing list