Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aleksandr Isakov
wine-fonts
Commits
059a2d8c
Commit
059a2d8c
authored
Aug 14, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipAddPathLineI.
parent
56628200
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphicspath.c
dlls/gdiplus/graphicspath.c
+27
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
059a2d8c
...
...
@@ -19,7 +19,7 @@
@ stdcall GdipAddPathLine2(ptr ptr long)
@ stub GdipAddPathLine2I
@ stub GdipAddPathLine
@ st
ub GdipAddPathLineI
@ st
dcall GdipAddPathLineI(ptr long long long long)
@ stdcall GdipAddPathPath(ptr ptr long)
@ stub GdipAddPathPie
@ stub GdipAddPathPieI
...
...
dlls/gdiplus/graphicspath.c
View file @
059a2d8c
...
...
@@ -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
)
{
...
...
include/gdiplusflat.h
View file @
059a2d8c
...
...
@@ -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
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment