mirror of
https://github.com/reactos/wine.git
synced 2025-02-27 08:15:36 +00:00
gdiplus: Accept a transformation matrix in GdipFlattenPath.
This commit is contained in:
parent
cbfc79aae5
commit
12f1ed2b3e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user