From 1f6f84c7bb21875ab9d356ba4fc8f6699da7df47 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 29 Feb 2012 13:35:28 -0600 Subject: [PATCH] gdiplus: Don't add control points to the result in GdipFlattenPath. --- dlls/gdiplus/graphicspath.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index 120802cd287..131477e1c9b 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -1207,14 +1207,7 @@ GpStatus WINGDIPAPI GdipFlattenPath(GpPath *path, GpMatrix* matrix, REAL flatnes continue; } - /* Bezier curve always stored as 4 points */ - if((path->pathdata.Types[i-1] & PathPointTypePathTypeMask) != PathPointTypeStart){ - type = (path->pathdata.Types[i] & ~PathPointTypePathTypeMask) | PathPointTypeLine; - if(!add_path_list_node(node, pt.X, pt.Y, type)) - goto memout; - - node = node->next; - } + /* Bezier curve */ /* test for closed figure */ if(path->pathdata.Types[i+1] & PathPointTypeCloseSubpath){ -- 2.11.4.GIT