[2/6] gdiplus: GdipGetPathWorldBoundsI
Nikolay Sivov
bunglehead at gmail.com
Tue Apr 29 16:28:24 CDT 2008
Changelog:
- implemented GdipGetPathWorldBoundsI
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/graphicspath.c | 18 ++++++++++++++++++
2 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 5c4aa52..c5dfa5c 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -347,7 +347,7 @@
@ stdcall GdipGetPathPointsI(ptr ptr long)
@ stdcall GdipGetPathTypes(ptr ptr long)
@ stdcall GdipGetPathWorldBounds(ptr ptr ptr ptr)
-@ stub GdipGetPathWorldBoundsI
+@ stdcall GdipGetPathWorldBoundsI(ptr ptr ptr ptr)
@ stdcall GdipGetPenBrushFill(ptr ptr)
@ stdcall GdipGetPenColor(ptr ptr)
@ stub GdipGetPenCompoundArray
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 261a0d7..25a2557 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -623,6 +623,24 @@ GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath* path, GpRectF* bounds,
return Ok;
}
+GpStatus WINGDIPAPI GdipGetPathWorldBoundsI(GpPath* path, GpRect* bounds,
+ GDIPCONST GpMatrix *matrix, GDIPCONST GpPen *pen)
+{
+ GpStatus ret;
+ GpRectF boundsF;
+
+ ret = GdipGetPathWorldBounds(path,&boundsF,matrix,pen);
+
+ if(ret == Ok){
+ bounds->X = roundr(boundsF.X);
+ bounds->Y = roundr(boundsF.Y);
+ bounds->Width = roundr(boundsF.Width);
+ bounds->Height = roundr(boundsF.Height);
+ }
+
+ return ret;
+}
+
GpStatus WINGDIPAPI GdipGetPointCount(GpPath *path, INT *count)
{
if(!path)
--
1.4.4.4
More information about the wine-patches
mailing list