Commit 1f8f5578 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus: Implemented GdipAddPathLine.

parent 7df19367
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
@ stub GdipAddPathEllipseI @ stub GdipAddPathEllipseI
@ stdcall GdipAddPathLine2(ptr ptr long) @ stdcall GdipAddPathLine2(ptr ptr long)
@ stdcall GdipAddPathLine2I(ptr ptr long) @ stdcall GdipAddPathLine2I(ptr ptr long)
@ stub GdipAddPathLine @ stdcall GdipAddPathLine(ptr long long long long)
@ stdcall GdipAddPathLineI(ptr long long long long) @ stdcall GdipAddPathLineI(ptr long long long long)
@ stdcall GdipAddPathPath(ptr ptr long) @ stdcall GdipAddPathPath(ptr ptr long)
@ stub GdipAddPathPie @ stub GdipAddPathPie
......
...@@ -247,7 +247,7 @@ GpStatus WINGDIPAPI GdipAddPathLine2I(GpPath *path, GDIPCONST GpPoint *points, I ...@@ -247,7 +247,7 @@ GpStatus WINGDIPAPI GdipAddPathLine2I(GpPath *path, GDIPCONST GpPoint *points, I
return stat; return stat;
} }
GpStatus WINGDIPAPI GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y2) GpStatus WINGDIPAPI GdipAddPathLine(GpPath *path, REAL x1, REAL y1, REAL x2, REAL y2)
{ {
INT old_count; INT old_count;
...@@ -259,10 +259,10 @@ GpStatus WINGDIPAPI GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y ...@@ -259,10 +259,10 @@ GpStatus WINGDIPAPI GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y
old_count = path->pathdata.Count; old_count = path->pathdata.Count;
path->pathdata.Points[old_count].X = (REAL) x1; path->pathdata.Points[old_count].X = x1;
path->pathdata.Points[old_count].Y = (REAL) y1; path->pathdata.Points[old_count].Y = y1;
path->pathdata.Points[old_count + 1].X = (REAL) x2; path->pathdata.Points[old_count + 1].X = x2;
path->pathdata.Points[old_count + 1].Y = (REAL) y2; path->pathdata.Points[old_count + 1].Y = y2;
path->pathdata.Types[old_count] = path->pathdata.Types[old_count] =
(path->newfigure ? PathPointTypeStart : PathPointTypeLine); (path->newfigure ? PathPointTypeStart : PathPointTypeLine);
...@@ -274,6 +274,11 @@ GpStatus WINGDIPAPI GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y ...@@ -274,6 +274,11 @@ GpStatus WINGDIPAPI GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y2)
{
return GdipAddPathLine(path, (REAL)x1, (REAL)y1, (REAL)x2, (REAL)y2);
}
GpStatus WINGDIPAPI GdipAddPathPath(GpPath *path, GDIPCONST GpPath* addingPath, GpStatus WINGDIPAPI GdipAddPathPath(GpPath *path, GDIPCONST GpPath* addingPath,
BOOL connect) BOOL connect)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment