Nikolay Sivov : gdiplus: Added GdipSetClipGraphics.
Alexandre Julliard
julliard at winehq.org
Thu Oct 23 08:38:08 CDT 2008
Module: wine
Branch: master
Commit: c543f3d947987f89fb69527f8e3e17909a399641
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c543f3d947987f89fb69527f8e3e17909a399641
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed Oct 22 20:03:10 2008 +0400
gdiplus: Added GdipSetClipGraphics.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/graphics.c | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index ef53b9b..fea80a4 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -506,7 +506,7 @@
@ stdcall GdipSetAdjustableArrowCapHeight(ptr long)
@ stdcall GdipSetAdjustableArrowCapMiddleInset(ptr long)
@ stdcall GdipSetAdjustableArrowCapWidth(ptr long)
-@ stub GdipSetClipGraphics
+@ stdcall GdipSetClipGraphics(ptr ptr long)
@ stub GdipSetClipHrgn
@ stdcall GdipSetClipPath(ptr ptr long)
@ stdcall GdipSetClipRect(ptr long long long long long)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 03b0994..3273494 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2818,6 +2818,17 @@ GpStatus WINGDIPAPI GdipScaleWorldTransform(GpGraphics *graphics, REAL sx,
return GdipScaleMatrix(graphics->worldtrans, sx, sy, order);
}
+GpStatus WINGDIPAPI GdipSetClipGraphics(GpGraphics *graphics, GpGraphics *srcgraphics,
+ CombineMode mode)
+{
+ TRACE("(%p, %p, %d)\n", graphics, srcgraphics, mode);
+
+ if(!graphics || !srcgraphics)
+ return InvalidParameter;
+
+ return GdipCombineRegionRegion(graphics->clip, srcgraphics->clip, mode);
+}
+
GpStatus WINGDIPAPI GdipSetCompositingMode(GpGraphics *graphics,
CompositingMode mode)
{
More information about the wine-cvs
mailing list