Huw Davies : gdiplus: Add stubs for GdipTransformPoints[I].

Alexandre Julliard julliard at winehq.org
Thu Jul 10 14:07:25 CDT 2008


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Jul 10 15:26:58 2008 +0100

gdiplus: Add stubs for GdipTransformPoints[I].

---

 dlls/gdiplus/gdiplus.spec |    4 ++--
 dlls/gdiplus/graphics.c   |   16 ++++++++++++++++
 include/gdiplusenums.h    |    8 ++++++++
 include/gdiplusflat.h     |    4 ++++
 include/gdiplusgpstubs.h  |    1 +
 5 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index df323aa..2553779 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -606,8 +606,8 @@
 @ stdcall GdipTransformMatrixPoints(ptr ptr long)
 @ stdcall GdipTransformMatrixPointsI(ptr ptr long)
 @ stdcall GdipTransformPath(ptr ptr)
-@ stub GdipTransformPoints
-@ stub GdipTransformPointsI
+@ stdcall GdipTransformPoints(ptr long long ptr long)
+@ stdcall GdipTransformPointsI(ptr long long ptr long)
 @ stdcall GdipTransformRegion(ptr ptr)
 @ stub GdipTranslateClip
 @ stub GdipTranslateClipI
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 23919e2..48917b3 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2621,3 +2621,19 @@ GpStatus WINGDIPAPI GdipGetClip(GpGraphics *graphics, GpRegion *region)
 
    return NotImplemented;
 }
+
+GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics *graphics, GpCoordinateSpace dst_space,
+                                        GpCoordinateSpace src_space, GpPointF *points, INT count)
+{
+    FIXME("(%p, %d, %d, %p, %d): stub\n", graphics, dst_space, src_space, points, count);
+
+    return NotImplemented;
+}
+
+GpStatus WINGDIPAPI GdipTransformPointsI(GpGraphics *graphics, GpCoordinateSpace dst_space,
+                                         GpCoordinateSpace src_space, GpPoint *points, INT count)
+{
+    FIXME("(%p, %d, %d, %p, %d): stub\n", graphics, dst_space, src_space, points, count);
+
+    return NotImplemented;
+}
diff --git a/include/gdiplusenums.h b/include/gdiplusenums.h
index 8e1148d..53401bd 100644
--- a/include/gdiplusenums.h
+++ b/include/gdiplusenums.h
@@ -314,6 +314,13 @@ enum FlushIntention
     FlushIntentionSync  = 1
 };
 
+enum CoordinateSpace
+{
+    CoordinateSpaceWorld,
+    CoordinateSpacePage,
+    CoordinateSpaceDevice
+};
+
 #ifndef __cplusplus
 
 typedef enum Unit Unit;
@@ -347,6 +354,7 @@ typedef enum PenAlignment GpPenAlignment;
 typedef enum ImageCodecFlags ImageCodecFlags;
 typedef enum CombineMode CombineMode;
 typedef enum FlushIntention FlushIntention;
+typedef enum CoordinateSpace CoordinateSpace;
 
 #endif /* end of c typedefs */
 
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 190e6f1..378057a 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -224,6 +224,10 @@ GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*,
 GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode);
 GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill*,ARGB);
 GpStatus WINGDIPAPI GdipSetTextureTransform(GpTexture *,GDIPCONST GpMatrix*);
+GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics*, GpCoordinateSpace, GpCoordinateSpace,
+                                        GpPointF *, INT);
+GpStatus WINGDIPAPI GdipTransformPointsI(GpGraphics*, GpCoordinateSpace, GpCoordinateSpace,
+                                         GpPoint *, INT);
 
 GpStatus WINGDIPAPI GdipAddPathArc(GpPath*,REAL,REAL,REAL,REAL,REAL,REAL);
 GpStatus WINGDIPAPI GdipAddPathArcI(GpPath*,INT,INT,INT,INT,REAL,REAL);
diff --git a/include/gdiplusgpstubs.h b/include/gdiplusgpstubs.h
index a1878f6..bb7c47f 100644
--- a/include/gdiplusgpstubs.h
+++ b/include/gdiplusgpstubs.h
@@ -85,5 +85,6 @@ typedef Point GpPoint;
 typedef WrapMode GpWrapMode;
 typedef Color GpColor;
 typedef FlushIntention GpFlushIntention;
+typedef CoordinateSpace GpCoordinateSpace;
 
 #endif




More information about the wine-cvs mailing list