Nikolay Sivov : gdiplus: Implemented GdipGetClipBounds/GdipGetClipBoundsI.
Alexandre Julliard
julliard at winehq.org
Tue Feb 3 09:13:14 CST 2009
Module: wine
Branch: master
Commit: bcfe4e7e46d2199e04ae4793538dcb0fcdbdc719
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bcfe4e7e46d2199e04ae4793538dcb0fcdbdc719
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon Feb 2 22:58:27 2009 +0300
gdiplus: Implemented GdipGetClipBounds/GdipGetClipBoundsI.
---
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 f9d47d9..450c596 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -245,8 +245,8 @@
@ stdcall GdipGetCellAscent(ptr long ptr)
@ stdcall GdipGetCellDescent(ptr long ptr)
@ stdcall GdipGetClip(ptr ptr)
-@ stub GdipGetClipBounds
-@ stub GdipGetClipBoundsI
+@ stdcall GdipGetClipBounds(ptr ptr)
+@ stdcall GdipGetClipBoundsI(ptr ptr)
@ stdcall GdipGetCompositingMode(ptr ptr)
@ stdcall GdipGetCompositingQuality(ptr ptr)
@ stdcall GdipGetCustomLineCapBaseCap(ptr ptr)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 039739b..547f9f6 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2405,6 +2405,32 @@ GpStatus WINGDIPAPI GdipFlush(GpGraphics *graphics, GpFlushIntention intention)
return NotImplemented;
}
+/*****************************************************************************
+ * GdipGetClipBounds [GDIPLUS.@]
+ */
+GpStatus WINGDIPAPI GdipGetClipBounds(GpGraphics *graphics, GpRectF *rect)
+{
+ TRACE("(%p, %p)\n", graphics, rect);
+
+ if(!graphics)
+ return InvalidParameter;
+
+ return GdipGetRegionBounds(graphics->clip, graphics, rect);
+}
+
+/*****************************************************************************
+ * GdipGetClipBoundsI [GDIPLUS.@]
+ */
+GpStatus WINGDIPAPI GdipGetClipBoundsI(GpGraphics *graphics, GpRect *rect)
+{
+ TRACE("(%p, %p)\n", graphics, rect);
+
+ if(!graphics)
+ return InvalidParameter;
+
+ return GdipGetRegionBoundsI(graphics->clip, graphics, rect);
+}
+
/* FIXME: Compositing mode is not used anywhere except the getter/setter. */
GpStatus WINGDIPAPI GdipGetCompositingMode(GpGraphics *graphics,
CompositingMode *mode)
More information about the wine-cvs
mailing list