Nikolay Sivov : gdiplus: Implemented GdipTranslateClip/GdipTranslateClipI.
Alexandre Julliard
julliard at winehq.org
Mon Feb 2 09:01:17 CST 2009
Module: wine
Branch: master
Commit: 5da52e0677ee5a3d234a669bd97df07287b683d9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5da52e0677ee5a3d234a669bd97df07287b683d9
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Sat Jan 31 00:07:30 2009 +0300
gdiplus: Implemented GdipTranslateClip/GdipTranslateClipI.
---
dlls/gdiplus/gdiplus.spec | 4 ++--
dlls/gdiplus/graphics.c | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 3716207..7e7bfbf 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -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
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 5193334..039739b 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -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);
+}
More information about the wine-cvs
mailing list