Module: wine Branch: master Commit: 1f6f84c7bb21875ab9d356ba4fc8f6699da7df47 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1f6f84c7bb21875ab9d356ba4f...
Author: Vincent Povirk vincent@codeweavers.com Date: Wed Feb 29 13:35:28 2012 -0600
gdiplus: Don't add control points to the result in GdipFlattenPath.
---
dlls/gdiplus/graphicspath.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index 120802c..131477e 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){