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
89f380f6
Commit
89f380f6
authored
Feb 19, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Reimplement GdipDrawArc using GdipDrawPath.
parent
2fd1bf60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
graphics.c
dlls/gdiplus/graphics.c
+9
-16
No files found.
dlls/gdiplus/graphics.c
View file @
89f380f6
...
@@ -2503,9 +2503,8 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
...
@@ -2503,9 +2503,8 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
GpStatus
WINGDIPAPI
GdipDrawArc
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x
,
GpStatus
WINGDIPAPI
GdipDrawArc
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
,
REAL
startAngle
,
REAL
sweepAngle
)
REAL
y
,
REAL
width
,
REAL
height
,
REAL
startAngle
,
REAL
sweepAngle
)
{
{
INT
save_state
,
num_pts
;
GpStatus
status
;
GpPointF
points
[
MAX_ARC_PTS
];
GpPath
*
path
;
GpStatus
retval
;
TRACE
(
"(%p, %p, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f)
\n
"
,
graphics
,
pen
,
x
,
y
,
TRACE
(
"(%p, %p, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f)
\n
"
,
graphics
,
pen
,
x
,
y
,
width
,
height
,
startAngle
,
sweepAngle
);
width
,
height
,
startAngle
,
sweepAngle
);
...
@@ -2516,21 +2515,15 @@ GpStatus WINGDIPAPI GdipDrawArc(GpGraphics *graphics, GpPen *pen, REAL x,
...
@@ -2516,21 +2515,15 @@ GpStatus WINGDIPAPI GdipDrawArc(GpGraphics *graphics, GpPen *pen, REAL x,
if
(
graphics
->
busy
)
if
(
graphics
->
busy
)
return
ObjectBusy
;
return
ObjectBusy
;
if
(
!
graphics
->
hdc
)
status
=
GdipCreatePath
(
FillModeAlternate
,
&
path
);
{
if
(
status
!=
Ok
)
return
status
;
FIXME
(
"graphics object has no HDC
\n
"
);
return
Ok
;
}
num_pts
=
arc2polybezier
(
points
,
x
,
y
,
width
,
height
,
startAngle
,
sweepAngle
);
save_state
=
prepare_dc
(
graphics
,
pen
);
retval
=
draw_polybezier
(
graphics
,
pen
,
points
,
num_pts
,
TRUE
);
restore_dc
(
graphics
,
save_state
);
status
=
GdipAddPathArc
(
path
,
x
,
y
,
width
,
height
,
startAngle
,
sweepAngle
);
if
(
status
==
Ok
)
status
=
GdipDrawPath
(
graphics
,
pen
,
path
);
return
retval
;
GdipDeletePath
(
path
);
return
status
;
}
}
GpStatus
WINGDIPAPI
GdipDrawArcI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
INT
x
,
GpStatus
WINGDIPAPI
GdipDrawArcI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
INT
x
,
...
...
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