[9/21] gdiplus: added GdipGetMatrixElements

Evan Stade estade at gmail.com
Tue Jul 31 21:15:37 CDT 2007


Hi,

 dlls/gdiplus/gdiplus.spec |    2 +-
 dlls/gdiplus/matrix.c     |   11 +++++++++++
 include/gdiplusflat.h     |    1 +
 3 files changed, 13 insertions(+), 1 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 8dd2e2a..95a3618 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -313,7 +313,7 @@
 @ stub GdipGetLineWrapMode
 @ stub GdipGetLogFontA
 @ stub GdipGetLogFontW
-@ stub GdipGetMatrixElements
+@ stdcall GdipGetMatrixElements(ptr ptr)
 @ stub GdipGetMetafileDownLevelRasterizationLimit
 @ stub GdipGetMetafileHeaderFromEmf
 @ stub GdipGetMetafileHeaderFromFile
diff --git a/dlls/gdiplus/matrix.c b/dlls/gdiplus/matrix.c
index 50d511a..afb2efe 100644
--- a/dlls/gdiplus/matrix.c
+++ b/dlls/gdiplus/matrix.c
@@ -111,6 +111,17 @@ GpStatus WINGDIPAPI GdipDeleteMatrix(GpM
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipGetMatrixElements(GDIPCONST GpMatrix *matrix,
+    REAL *out)
+{
+    if(!matrix || !out)
+        return InvalidParameter;
+
+    memcpy(out, matrix->matrix, sizeof(matrix->matrix));
+
+    return Ok;
+}
+
 GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix *matrix, GpMatrix* matrix2,
     GpMatrixOrder order)
 {
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 31b17f5..b618dad 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -116,6 +116,7 @@ GpStatus WINGDIPAPI GdipCloneMatrix(GpMa
 GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
 GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**);
 GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
+GpStatus WINGDIPAPI GdipGetMatrixElements(GDIPCONST GpMatrix*,REAL*);
 GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix*,GpMatrix*,GpMatrixOrder);
 GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix*,REAL,GpMatrixOrder);
 GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix*,REAL,REAL,GpMatrixOrder);
-- 
1.4.1



More information about the wine-patches mailing list