Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
19cc99c3
Commit
19cc99c3
authored
Apr 25, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipAddPathBezier.
parent
ab242471
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphicspath.c
dlls/gdiplus/graphicspath.c
+17
-10
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
19cc99c3
@ stdcall GdipAddPathArc(ptr long long long long long long)
@ stdcall GdipAddPathArcI(ptr long long long long long long)
@ st
ub GdipAddPathBezier
@ st
dcall GdipAddPathBezier(ptr long long long long long long long long)
@ stdcall GdipAddPathBezierI(ptr long long long long long long long long)
@ stdcall GdipAddPathBeziers(ptr ptr long)
@ stub GdipAddPathBeziersI
...
...
dlls/gdiplus/graphicspath.c
View file @
19cc99c3
...
...
@@ -103,8 +103,8 @@ GpStatus WINGDIPAPI GdipAddPathArcI(GpPath *path, INT x1, INT y1, INT x2,
return
GdipAddPathArc
(
path
,(
REAL
)
x1
,(
REAL
)
y1
,(
REAL
)
x2
,(
REAL
)
y2
,
startAngle
,
sweepAngle
);
}
GpStatus
WINGDIPAPI
GdipAddPathBezier
I
(
GpPath
*
path
,
INT
x1
,
INT
y1
,
INT
x2
,
INT
y2
,
INT
x3
,
INT
y3
,
INT
x4
,
INT
y4
)
GpStatus
WINGDIPAPI
GdipAddPathBezier
(
GpPath
*
path
,
REAL
x1
,
REAL
y1
,
REAL
x2
,
REAL
y2
,
REAL
x3
,
REAL
y3
,
REAL
x4
,
REAL
y4
)
{
INT
old_count
;
...
...
@@ -116,14 +116,14 @@ GpStatus WINGDIPAPI GdipAddPathBezierI(GpPath *path, INT x1, INT y1, INT x2,
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
.
Points
[
old_count
+
2
].
X
=
(
REAL
)
x3
;
path
->
pathdata
.
Points
[
old_count
+
2
].
Y
=
(
REAL
)
y3
;
path
->
pathdata
.
Points
[
old_count
+
3
].
X
=
(
REAL
)
x4
;
path
->
pathdata
.
Points
[
old_count
+
3
].
Y
=
(
REAL
)
y4
;
path
->
pathdata
.
Points
[
old_count
].
X
=
x1
;
path
->
pathdata
.
Points
[
old_count
].
Y
=
y1
;
path
->
pathdata
.
Points
[
old_count
+
1
].
X
=
x2
;
path
->
pathdata
.
Points
[
old_count
+
1
].
Y
=
y2
;
path
->
pathdata
.
Points
[
old_count
+
2
].
X
=
x3
;
path
->
pathdata
.
Points
[
old_count
+
2
].
Y
=
y3
;
path
->
pathdata
.
Points
[
old_count
+
3
].
X
=
x4
;
path
->
pathdata
.
Points
[
old_count
+
3
].
Y
=
y4
;
path
->
pathdata
.
Types
[
old_count
]
=
(
path
->
newfigure
?
PathPointTypeStart
:
PathPointTypeLine
);
...
...
@@ -137,6 +137,13 @@ GpStatus WINGDIPAPI GdipAddPathBezierI(GpPath *path, INT x1, INT y1, INT x2,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipAddPathBezierI
(
GpPath
*
path
,
INT
x1
,
INT
y1
,
INT
x2
,
INT
y2
,
INT
x3
,
INT
y3
,
INT
x4
,
INT
y4
)
{
return
GdipAddPathBezier
(
path
,(
REAL
)
x1
,(
REAL
)
y1
,(
REAL
)
x2
,(
REAL
)
y2
,(
REAL
)
x3
,(
REAL
)
y3
,
(
REAL
)
x4
,(
REAL
)
y4
);
}
GpStatus
WINGDIPAPI
GdipAddPathBeziers
(
GpPath
*
path
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
...
...
include/gdiplusflat.h
View file @
19cc99c3
...
...
@@ -189,6 +189,7 @@ 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
GdipAddPathBezier
(
GpPath
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
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
);
...
...
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