gdiplus: Accept a transformation matrix in GdipFlattenPath.

Vincent Povirk madewokherd at gmail.com
Wed Jul 11 16:28:15 CDT 2012


-------------- next part --------------
From bd8630f5cce681e264ea71464cfe4d8139a5ee4b Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Wed, 11 Jul 2012 16:10:31 -0500
Subject: [PATCH 2/2] gdiplus: Accept a transformation matrix in
 GdipFlattenPath.

---
 dlls/gdiplus/graphicspath.c |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index ac17cc1..98d3fe9 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -1189,20 +1189,22 @@ GpStatus WINGDIPAPI GdipFlattenPath(GpPath *path, GpMatrix* matrix, REAL flatnes
     GpPointF pt;
     INT i = 1;
     INT startidx = 0;
+    GpStatus stat;
 
     TRACE("(%p, %p, %.2f)\n", path, matrix, flatness);
 
     if(!path)
         return InvalidParameter;
 
-    if(matrix){
-        WARN("transformation not supported yet!\n");
-        return NotImplemented;
-    }
-
     if(path->pathdata.Count == 0)
         return Ok;
 
+    if(matrix){
+        stat = GdipTransformPath(path, matrix);
+        if (stat != Ok)
+            return stat;
+    }
+
     pt = path->pathdata.Points[0];
     if(!init_path_list(&list, pt.X, pt.Y))
         return OutOfMemory;
-- 
1.7.9.5


More information about the wine-patches mailing list