Lei Zhang : gdiplus: Add a stub for GdipSetEffectParameters.

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


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

Author: Lei Zhang <thestig at google.com>
Date:   Wed Apr  9 13:00:16 2008 -0700

gdiplus: Add a stub for GdipSetEffectParameters.

---

 dlls/gdiplus/gdiplus.spec |    2 +-
 dlls/gdiplus/image.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 bc52d6f..810a565 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -519,7 +519,7 @@
 @ stdcall GdipSetCustomLineCapStrokeCaps(ptr long long)
 @ stdcall GdipSetCustomLineCapStrokeJoin(ptr long)
 @ stdcall GdipSetCustomLineCapWidthScale(ptr long)
-@ stub GdipSetEffectParameters
+@ stdcall GdipSetEffectParameters(ptr ptr long)
 @ stub GdipSetEmpty
 @ stub GdipSetImageAttributesCachedBackground
 @ stdcall GdipSetImageAttributesColorKeys(ptr long long long long)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index b1ec2c7..3de6ff0 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -1096,3 +1096,14 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromHBITMAP(HBITMAP hbm, HPALETTE hpal, GpBi
 
     return retval;
 }
+
+GpStatus WINGDIPAPI GdipSetEffectParameters(CGpEffect *effect,
+    const VOID *params, const UINT size)
+{
+    static int calls;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
diff --git a/include/gdiplusgpstubs.h b/include/gdiplusgpstubs.h
index cba15e4..d7d8702 100644
--- a/include/gdiplusgpstubs.h
+++ b/include/gdiplusgpstubs.h
@@ -39,6 +39,7 @@ class GpTexture : public GpBrush {};
 class GpFont {};
 class GpStringFormat {};
 class GpRegion {};
+class CGpEffect {};
 
 #else /* end of c++ declarations */
 
@@ -60,6 +61,7 @@ typedef struct GpTexture GpTexture;
 typedef struct GpFont GpFont;
 typedef struct GpStringFormat GpStringFormat;
 typedef struct GpRegion GpRegion;
+typedef struct CGpEffect CGpEffect;
 
 #endif /* end of c declarations */
 




More information about the wine-cvs mailing list