Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
40f2273f
Commit
40f2273f
authored
Jul 11, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Updated GdipDrawArc to use SaveDC()/RestoreDC()/line caps.
parent
1f7cfb1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
graphics.c
dlls/gdiplus/graphics.c
+8
-11
No files found.
dlls/gdiplus/graphics.c
View file @
40f2273f
...
...
@@ -418,24 +418,21 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
GpStatus
WINGDIPAPI
GdipDrawArc
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
,
REAL
startAngle
,
REAL
sweepAngle
)
{
HGDIOBJ
old_pen
;
REAL
x_0
,
y_0
,
x_1
,
y_1
,
x_2
,
y_2
;
INT
save_state
,
num_pts
;
GpPointF
points
[
MAX_ARC_PTS
]
;
if
(
!
graphics
||
!
pen
)
return
InvalidParameter
;
old_pen
=
SelectObject
(
graphics
->
hdc
,
pen
->
gdipen
);
x_0
=
x
+
(
width
/
2
.
0
);
y_0
=
y
+
(
height
/
2
.
0
);
num_pts
=
arc2polybezier
(
points
,
x
,
y
,
width
,
height
,
startAngle
,
sweepAngle
);
deg2xy
(
startAngle
+
sweepAngle
,
x_0
,
y_0
,
&
x_1
,
&
y_1
);
deg2xy
(
startAngle
,
x_0
,
y_0
,
&
x_2
,
&
y_2
);
save_state
=
SaveDC
(
graphics
->
hdc
);
EndPath
(
graphics
->
hdc
);
SelectObject
(
graphics
->
hdc
,
pen
->
gdipen
);
Arc
(
graphics
->
hdc
,
roundr
(
x
),
roundr
(
y
),
roundr
(
x
+
width
),
roundr
(
y
+
height
),
roundr
(
x_1
),
roundr
(
y_1
),
roundr
(
x_2
),
roundr
(
y_2
));
draw_polybezier
(
graphics
->
hdc
,
pen
,
points
,
num_pts
,
TRUE
);
SelectObject
(
graphics
->
hdc
,
old_pen
);
RestoreDC
(
graphics
->
hdc
,
save_state
);
return
Ok
;
}
...
...
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