Lei Zhang : gdiplus: Add a stub for GdipSetClipRegion.

Alexandre Julliard julliard at winehq.org
Thu Apr 10 04:39:27 CDT 2008


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

Author: Lei Zhang <thestig at google.com>
Date:   Wed Apr  9 12:35:29 2008 -0700

gdiplus: Add a stub for GdipSetClipRegion.

---

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

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index e0e6336..f6024cd 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -511,7 +511,7 @@
 @ stub GdipSetClipPath
 @ stub GdipSetClipRect
 @ stdcall GdipSetClipRectI(ptr long long long long long)
-@ stub GdipSetClipRegion
+@ stdcall GdipSetClipRegion(ptr ptr long)
 @ stdcall GdipSetCompositingMode(ptr long)
 @ stdcall GdipSetCompositingQuality(ptr long)
 @ stub GdipSetCustomLineCapBaseCap
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 92b0f76..3fcdfc6 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2100,3 +2100,14 @@ GpStatus WINGDIPAPI GdipSetClipRectI(GpGraphics *graphics, INT x, INT y,
 
     return NotImplemented;
 }
+
+GpStatus WINGDIPAPI GdipSetClipRegion(GpGraphics *graphics, GpRegion *region,
+                                     CombineMode combineMode)
+{
+    static int calls;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
diff --git a/include/gdiplusgpstubs.h b/include/gdiplusgpstubs.h
index 364f21c..cba15e4 100644
--- a/include/gdiplusgpstubs.h
+++ b/include/gdiplusgpstubs.h
@@ -38,6 +38,7 @@ class GpLineGradient : public GpBrush {};
 class GpTexture : public GpBrush {};
 class GpFont {};
 class GpStringFormat {};
+class GpRegion {};
 
 #else /* end of c++ declarations */
 
@@ -58,6 +59,7 @@ typedef struct GpLineGradient GpLineGradient;
 typedef struct GpTexture GpTexture;
 typedef struct GpFont GpFont;
 typedef struct GpStringFormat GpStringFormat;
+typedef struct GpRegion GpRegion;
 
 #endif /* end of c declarations */
 




More information about the wine-cvs mailing list