Huw Davies : gdiplus: Add some stubs for region functions.

Alexandre Julliard julliard at winehq.org
Mon May 12 13:41:09 CDT 2008


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon May 12 16:45:36 2008 +0100

gdiplus: Add some stubs for region functions.

---

 dlls/gdiplus/gdiplus.spec |    8 ++++----
 dlls/gdiplus/region.c     |   30 ++++++++++++++++++++++++++++++
 include/gdiplusflat.h     |    8 ++++++++
 3 files changed, 42 insertions(+), 4 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 297fefe..2d6f210 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -122,9 +122,9 @@
 @ stdcall GdipCreatePathIter(ptr ptr)
 @ stdcall GdipCreatePen1(long long long ptr)
 @ stdcall GdipCreatePen2(ptr long long ptr)
-@ stub GdipCreateRegion
+@ stdcall GdipCreateRegion(ptr)
 @ stub GdipCreateRegionHrgn
-@ stub GdipCreateRegionPath
+@ stdcall GdipCreateRegionPath(ptr ptr)
 @ stub GdipCreateRegionRect
 @ stub GdipCreateRegionRectI
 @ stub GdipCreateRegionRgnData
@@ -148,7 +148,7 @@
 @ stdcall GdipDeletePathIter(ptr)
 @ stdcall GdipDeletePen(ptr)
 @ stub GdipDeletePrivateFontCollection
-@ stub GdipDeleteRegion
+@ stdcall GdipDeleteRegion(ptr)
 @ stdcall GdipDeleteStringFormat(ptr)
 @ stdcall GdipDisposeImage(ptr)
 @ stdcall GdipDisposeImageAttributes(ptr)
@@ -379,7 +379,7 @@
 @ stub GdipGetRegionBoundsI
 @ stub GdipGetRegionData
 @ stub GdipGetRegionDataSize
-@ stub GdipGetRegionHRgn
+@ stdcall GdipGetRegionHRgn(ptr ptr ptr)
 @ stub GdipGetRegionScans
 @ stub GdipGetRegionScansCount
 @ stub GdipGetRegionScansI
diff --git a/dlls/gdiplus/region.c b/dlls/gdiplus/region.c
index 92da580..4286b47 100644
--- a/dlls/gdiplus/region.c
+++ b/dlls/gdiplus/region.c
@@ -30,6 +30,36 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
 
+GpStatus WINGDIPAPI GdipCreateRegion(GpRegion **region)
+{
+    FIXME("(%p): stub\n", region);
+
+    *region = NULL;
+    return NotImplemented;
+}
+
+GpStatus WINGDIPAPI GdipCreateRegionPath(GpPath *path, GpRegion **region)
+{
+    FIXME("(%p, %p): stub\n", path, region);
+
+    *region = NULL;
+    return NotImplemented;
+}
+
+GpStatus WINGDIPAPI GdipDeleteRegion(GpRegion *region)
+{
+    FIXME("(%p): stub\n", region);
+    return NotImplemented;
+}
+
+GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *region, GpGraphics *graphics, HRGN *hrgn)
+{
+    FIXME("(%p, %p, %p): stub\n", region, graphics, hrgn);
+
+    *hrgn = NULL;
+    return NotImplemented;
+}
+
 GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *region)
 {
     static int calls;
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 55ebe91..a8c1d65 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -354,6 +354,14 @@ GpStatus WINGDIPAPI GdipCloneStringFormat(GDIPCONST GpStringFormat*,GpStringForm
 GpStatus WINGDIPAPI GdipGetDpiX(GpGraphics*,REAL*);
 GpStatus WINGDIPAPI GdipGetDpiY(GpGraphics*,REAL*);
 
+GpStatus WINGDIPAPI GdipCreateRegion(GpRegion **);
+GpStatus WINGDIPAPI GdipCreateRegionPath(GpPath *, GpRegion **);
+GpStatus WINGDIPAPI GdipDeleteRegion(GpRegion *);
+GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *, GpGraphics *, HRGN *);
+GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *);
+GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *);
+
+
 #ifdef __cplusplus
 }
 #endif




More information about the wine-cvs mailing list