diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index ef53b9bbd7c..fea80a44f55 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 03b0994e959..3273494a612 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) {