[5/5] gdiplus: Implemented GdipTranslateClip/GdipTranslateClipI
Nikolay Sivov
bunglehead at gmail.com
Fri Jan 30 15:15:29 CST 2009
Changelog:
- Implemented GdipTranslateClip/GdipTranslateClipI
>From dc266a3f90b7b9668551efa66fa30233e5ca622c Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Sat, 31 Jan 2009 00:07:30 +0300
Subject: 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);
+}
--
1.5.6.5
More information about the wine-patches
mailing list