mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:38:21 +00:00
gdiplus: Added GdipAddPathLineI.
This commit is contained in:
parent
5662820072
commit
059a2d8c6f
|
@ -19,7 +19,7 @@
|
|||
@ stdcall GdipAddPathLine2(ptr ptr long)
|
||||
@ stub GdipAddPathLine2I
|
||||
@ stub GdipAddPathLine
|
||||
@ stub GdipAddPathLineI
|
||||
@ stdcall GdipAddPathLineI(ptr long long long long)
|
||||
@ stdcall GdipAddPathPath(ptr ptr long)
|
||||
@ stub GdipAddPathPie
|
||||
@ stub GdipAddPathPieI
|
||||
|
|
|
@ -217,6 +217,33 @@ GpStatus WINGDIPAPI GdipAddPathLine2(GpPath *path, GDIPCONST GpPointF *points,
|
|||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y2)
|
||||
{
|
||||
INT old_count;
|
||||
|
||||
if(!path)
|
||||
return InvalidParameter;
|
||||
|
||||
if(!lengthen_path(path, 2))
|
||||
return OutOfMemory;
|
||||
|
||||
old_count = path->pathdata.Count;
|
||||
|
||||
path->pathdata.Points[old_count].X = (REAL) x1;
|
||||
path->pathdata.Points[old_count].Y = (REAL) y1;
|
||||
path->pathdata.Points[old_count + 1].X = (REAL) x2;
|
||||
path->pathdata.Points[old_count + 1].Y = (REAL) y2;
|
||||
|
||||
path->pathdata.Types[old_count] =
|
||||
(path->newfigure ? PathPointTypeStart : PathPointTypeLine);
|
||||
path->pathdata.Types[old_count + 1] = PathPointTypeLine;
|
||||
|
||||
path->newfigure = FALSE;
|
||||
path->pathdata.Count += 2;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipAddPathPath(GpPath *path, GDIPCONST GpPath* addingPath,
|
||||
BOOL connect)
|
||||
{
|
||||
|
|
|
@ -146,6 +146,7 @@ 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);
|
||||
GpStatus WINGDIPAPI GdipAddPathLine2(GpPath*,GDIPCONST GpPointF*,INT);
|
||||
GpStatus WINGDIPAPI GdipAddPathLineI(GpPath*,INT,INT,INT,INT);
|
||||
GpStatus WINGDIPAPI GdipAddPathPath(GpPath*,GDIPCONST GpPath*,BOOL);
|
||||
GpStatus WINGDIPAPI GdipClonePath(GpPath*,GpPath**);
|
||||
GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*);
|
||||
|
|
Loading…
Reference in a new issue