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
fe2ce3a0
Commit
fe2ce3a0
authored
Jul 25, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipAddPathEllipse.
parent
f52adfd0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphicspath.c
dlls/gdiplus/graphicspath.c
+30
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
fe2ce3a0
...
...
@@ -14,7 +14,7 @@
@ stub GdipAddPathCurve3I
@ stub GdipAddPathCurve
@ stub GdipAddPathCurveI
@ st
ub GdipAddPathEllipse
@ st
dcall GdipAddPathEllipse(ptr long long long long)
@ stub GdipAddPathEllipseI
@ stdcall GdipAddPathLine2(ptr ptr long)
@ stub GdipAddPathLine2I
...
...
dlls/gdiplus/graphicspath.c
View file @
fe2ce3a0
...
...
@@ -121,6 +121,36 @@ GpStatus WINGDIPAPI GdipAddPathBeziers(GpPath *path, GDIPCONST GpPointF *points,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipAddPathEllipse
(
GpPath
*
path
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
)
{
INT
old_count
,
numpts
;
if
(
!
path
)
return
InvalidParameter
;
if
(
!
lengthen_path
(
path
,
MAX_ARC_PTS
))
return
OutOfMemory
;
old_count
=
path
->
pathdata
.
Count
;
if
((
numpts
=
arc2polybezier
(
&
path
->
pathdata
.
Points
[
old_count
],
x
,
y
,
width
,
height
,
0
.
0
,
360
.
0
))
!=
MAX_ARC_PTS
){
ERR
(
"expected %d points but got %d
\n
"
,
MAX_ARC_PTS
,
numpts
);
return
GenericError
;
}
memset
(
&
path
->
pathdata
.
Types
[
old_count
+
1
],
PathPointTypeBezier
,
MAX_ARC_PTS
-
1
);
/* An ellipse is an instrinsic figure (always its own subpath). */
path
->
pathdata
.
Types
[
old_count
]
=
PathPointTypeStart
;
path
->
pathdata
.
Types
[
old_count
+
MAX_ARC_PTS
-
1
]
|=
PathPointTypeCloseSubpath
;
path
->
newfigure
=
TRUE
;
path
->
pathdata
.
Count
+=
MAX_ARC_PTS
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipAddPathLine2
(
GpPath
*
path
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
...
...
include/gdiplusflat.h
View file @
fe2ce3a0
...
...
@@ -89,6 +89,7 @@ GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill*,ARGB);
GpStatus
WINGDIPAPI
GdipAddPathArc
(
GpPath
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipAddPathBeziers
(
GpPath
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathEllipse
(
GpPath
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipAddPathLine2
(
GpPath
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathPath
(
GpPath
*
,
GDIPCONST
GpPath
*
,
BOOL
);
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