[3/3] gdiplus: GdipAddPathArcI

Nikolay Sivov bunglehead at gmail.com
Tue Apr 15 16:43:52 CDT 2008


Changelog:
   - based on float args version.
---
dlls/gdiplus/gdiplus.spec   |    2 +-
dlls/gdiplus/graphicspath.c |    6 ++++++
include/gdiplusflat.h       |    1 +
3 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 337ffb2..2ca35d8 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -1,5 +1,5 @@
@ stdcall GdipAddPathArc(ptr long long long long long long)
-@ stub GdipAddPathArcI
+@ stdcall GdipAddPathArcI(ptr long long long long long long)
@ stub GdipAddPathBezier
@ stdcall GdipAddPathBezierI(ptr long long long long long long long
long)
@ stdcall GdipAddPathBeziers(ptr ptr long)
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index adeaa89..14068b4 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -97,6 +97,12 @@ GpStatus WINGDIPAPI GdipAddPathArc(GpPath *path, REAL
x1, REAL y1, REAL x2,
     return Ok;
}

+GpStatus WINGDIPAPI GdipAddPathArcI(GpPath *path, INT x1, INT y1, INT
x2,
+   INT y2, REAL startAngle, REAL sweepAngle)
+{
+    return
GdipAddPathArc(path,(REAL)x1,(REAL)y1,(REAL)x2,(REAL)y2,startAngle,sweepAngle);
+}
+
GpStatus WINGDIPAPI GdipAddPathBezierI(GpPath *path, INT x1, INT y1, INT
x2,
     INT y2, INT x3, INT y3, INT x4, INT y4)
{
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index e92c646..7b8a9f6 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -182,6 +182,7 @@ GpStatus WINGDIPAPI
GdipSetSolidFillColor(GpSolidFill*,ARGB);
GpStatus WINGDIPAPI GdipSetTextureTransform(GpTexture *,GDIPCONST
GpMatrix*);

GpStatus WINGDIPAPI
GdipAddPathArc(GpPath*,REAL,REAL,REAL,REAL,REAL,REAL);
+GpStatus WINGDIPAPI GdipAddPathArcI(GpPath*,INT,INT,INT,INT,REAL,REAL);
GpStatus WINGDIPAPI
GdipAddPathBezierI(GpPath*,INT,INT,INT,INT,INT,INT,INT,INT);
GpStatus WINGDIPAPI GdipAddPathBeziers(GpPath*,GDIPCONST GpPointF*,INT);
GpStatus WINGDIPAPI GdipAddPathEllipse(GpPath*,REAL,REAL,REAL,REAL);
-- 
1.4.4.4






More information about the wine-patches mailing list