gdiplus: Implemented GdipTranslateClip/GdipTranslateClipI.

This commit is contained in:
Nikolay Sivov 2009-01-31 00:07:30 +03:00 committed by Alexandre Julliard
parent dc3908a351
commit 5da52e0677
2 changed files with 28 additions and 2 deletions

View File

@ -609,8 +609,8 @@
@ stdcall GdipTransformPoints(ptr long long ptr long)
@ stdcall GdipTransformPointsI(ptr long long ptr long)
@ stdcall GdipTransformRegion(ptr ptr)
@ stub GdipTranslateClip
@ stub GdipTranslateClipI
@ stdcall GdipTranslateClip(ptr long long)
@ stdcall GdipTranslateClipI(ptr long long)
@ stdcall GdipTranslateLineTransform(ptr long long long)
@ stdcall GdipTranslateMatrix(ptr long long long)
@ stub GdipTranslatePathGradientTransform

View File

@ -3318,3 +3318,29 @@ HPALETTE WINGDIPAPI GdipCreateHalftonePalette(void)
return NULL;
}
/*****************************************************************************
* GdipTranslateClip [GDIPLUS.@]
*/
GpStatus WINGDIPAPI GdipTranslateClip(GpGraphics *graphics, REAL dx, REAL dy)
{
TRACE("(%p, %.2f, %.2f)\n", graphics, dx, dy);
if(!graphics)
return InvalidParameter;
return GdipTranslateRegion(graphics->clip, dx, dy);
}
/*****************************************************************************
* GdipTranslateClipI [GDIPLUS.@]
*/
GpStatus WINGDIPAPI GdipTranslateClipI(GpGraphics *graphics, INT dx, INT dy)
{
TRACE("(%p, %d, %d)\n", graphics, dx, dy);
if(!graphics)
return InvalidParameter;
return GdipTranslateRegion(graphics->clip, (REAL)dx, (REAL)dy);
}