Evan Stade : gdiplus: Added GdipTranslateWorldTransform.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 10 07:31:19 CDT 2007


Module: wine
Branch: master
Commit: 795b62216d6b0a9067e983e84f006c0c6bab2afc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=795b62216d6b0a9067e983e84f006c0c6bab2afc

Author: Evan Stade <estade at gmail.com>
Date:   Thu Aug  9 18:25:31 2007 -0700

gdiplus: Added GdipTranslateWorldTransform.

---

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

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index a624a90..3f2ceea 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -618,7 +618,7 @@
 @ stub GdipTranslateRegion
 @ stub GdipTranslateRegionI
 @ stub GdipTranslateTextureTransform
-@ stub GdipTranslateWorldTransform
+@ stdcall GdipTranslateWorldTransform(ptr long long long)
 @ stub GdipVectorTransformMatrixPoints
 @ stub GdipVectorTransformMatrixPointsI
 @ stub GdipWarpPath
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 6be5de4..d9cf86f 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -1594,3 +1594,12 @@ GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics *graphics, GpMatrix *matrix
     GdipDeleteMatrix(graphics->worldtrans);
     return GdipCloneMatrix(matrix, &graphics->worldtrans);
 }
+
+GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx,
+    REAL dy, GpMatrixOrder order)
+{
+    if(!graphics)
+        return InvalidParameter;
+
+    return GdipTranslateMatrix(graphics->worldtrans, dx, dy, order);
+}
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 231f918..61d2e6d 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -97,6 +97,7 @@ GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics*,GpUnit);
 GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
 GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
 GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics*,GpMatrix*);
+GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics*,REAL,REAL,GpMatrixOrder);
 
 GpStatus WINGDIPAPI GdipCloneBrush(GpBrush*,GpBrush**);
 GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF*,INT,GpWrapMode,




More information about the wine-cvs mailing list