Module: wine Branch: master Commit: d9a4299bfc0d5fbc1f1cb6126f1546b49ad9118a URL: http://source.winehq.org/git/wine.git/?a=commit;h=d9a4299bfc0d5fbc1f1cb6126f...
Author: Lei Zhang thestig@google.com Date: Tue Apr 8 14:44:41 2008 -0700
gdiplus: Add a stub for GdipSetClipRectI.
---
dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphics.c | 12 ++++++++++++ include/gdiplusenums.h | 11 +++++++++++ 3 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 3b3ec41..e0e6336 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -510,7 +510,7 @@ @ stub GdipSetClipHrgn @ stub GdipSetClipPath @ stub GdipSetClipRect -@ stub GdipSetClipRectI +@ stdcall GdipSetClipRectI(ptr long long long long long) @ stub GdipSetClipRegion @ stdcall GdipSetCompositingMode(ptr long) @ stdcall GdipSetCompositingQuality(ptr long) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 74c755b..92b0f76 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -2088,3 +2088,15 @@ GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx,
return GdipTranslateMatrix(graphics->worldtrans, dx, dy, order); } + +GpStatus WINGDIPAPI GdipSetClipRectI(GpGraphics *graphics, INT x, INT y, + INT width, INT height, + CombineMode combineMode) +{ + static int calls; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} diff --git a/include/gdiplusenums.h b/include/gdiplusenums.h index c579ebe..b0d9884 100644 --- a/include/gdiplusenums.h +++ b/include/gdiplusenums.h @@ -270,6 +270,16 @@ enum ImageCodecFlags ImageCodecFlagsUser = 262144 };
+enum CombineMode +{ + CombineModeReplace, + CombineModeIntersect, + CombineModeUnion, + CombineModeXor, + CombineModeExclude, + CombineModeComplement +}; + #ifndef __cplusplus
typedef enum Unit Unit; @@ -299,6 +309,7 @@ typedef enum StringFormatFlags StringFormatFlags; typedef enum HotkeyPrefix HotkeyPrefix; typedef enum PenAlignment GpPenAlignment; typedef enum ImageCodecFlags ImageCodecFlags; +typedef enum CombineMode CombineMode;
#endif /* end of c typedefs */