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
864384e7
Commit
864384e7
authored
Jun 27, 2008
by
Przemysław Białek
Committed by
Alexandre Julliard
Jun 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implementation of function GdipDrawEllipse.
parent
ce81d843
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
graphics.c
dlls/gdiplus/graphics.c
+34
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
864384e7
...
...
@@ -170,8 +170,8 @@
@ stdcall GdipDrawCurve(ptr ptr ptr long)
@ stdcall GdipDrawCurveI(ptr ptr ptr long)
@ stub GdipDrawDriverString
@ st
ub GdipDrawEllipse
@ st
ub GdipDrawEllipseI
@ st
dcall GdipDrawEllipse(ptr ptr long long long long)
@ st
dcall GdipDrawEllipseI(ptr ptr long long long long)
@ stdcall GdipDrawImage(ptr ptr long long)
@ stub GdipDrawImageFX
@ stdcall GdipDrawImageI(ptr ptr long long)
...
...
dlls/gdiplus/graphics.c
View file @
864384e7
...
...
@@ -1106,6 +1106,40 @@ GpStatus WINGDIPAPI GdipDrawCurve2I(GpGraphics *graphics, GpPen *pen,
return
ret
;
}
GpStatus
WINGDIPAPI
GdipDrawEllipse
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
)
{
INT
save_state
;
GpPointF
ptf
[
2
];
POINT
pti
[
2
];
if
(
!
graphics
||
!
pen
)
return
InvalidParameter
;
ptf
[
0
].
X
=
x
;
ptf
[
0
].
Y
=
y
;
ptf
[
1
].
X
=
x
+
width
;
ptf
[
1
].
Y
=
y
+
height
;
save_state
=
prepare_dc
(
graphics
,
pen
);
SelectObject
(
graphics
->
hdc
,
GetStockObject
(
NULL_BRUSH
));
transform_and_round_points
(
graphics
,
pti
,
ptf
,
2
);
Ellipse
(
graphics
->
hdc
,
pti
[
0
].
x
,
pti
[
0
].
y
,
pti
[
1
].
x
,
pti
[
1
].
y
);
restore_dc
(
graphics
,
save_state
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawEllipseI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
INT
x
,
INT
y
,
INT
width
,
INT
height
)
{
return
GdipDrawEllipse
(
graphics
,
pen
,(
REAL
)
x
,(
REAL
)
y
,(
REAL
)
width
,(
REAL
)
height
);
}
GpStatus
WINGDIPAPI
GdipDrawImage
(
GpGraphics
*
graphics
,
GpImage
*
image
,
REAL
x
,
REAL
y
)
{
/* IPicture::Render uses LONG coords */
...
...
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