From 523f0bb3807e9c91d299cebc47b5cd38c1490b66 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 9 Apr 2008 13:00:16 -0700 Subject: [PATCH 07/22] 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 */ -- 1.5.3.6