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
2ce5be2c
Commit
2ce5be2c
authored
Mar 10, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use GdipFillPath to implement GdipFillPie.
parent
4aa99eaf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
graphics.c
dlls/gdiplus/graphics.c
+11
-15
No files found.
dlls/gdiplus/graphics.c
View file @
2ce5be2c
...
...
@@ -3472,7 +3472,8 @@ GpStatus WINGDIPAPI GdipFillPath(GpGraphics *graphics, GpBrush *brush, GpPath *p
GpStatus
WINGDIPAPI
GdipFillPie
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
,
REAL
startAngle
,
REAL
sweepAngle
)
{
INT
save_state
;
GpStatus
stat
;
GpPath
*
path
;
TRACE
(
"(%p, %p, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f)
\n
"
,
graphics
,
brush
,
x
,
y
,
width
,
height
,
startAngle
,
sweepAngle
);
...
...
@@ -3483,24 +3484,19 @@ GpStatus WINGDIPAPI GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x,
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
!
graphics
->
hdc
)
{
FIXME
(
"graphics object has no HDC
\n
"
);
return
Ok
;
}
save_state
=
SaveDC
(
graphics
->
hdc
);
EndPath
(
graphics
->
hdc
);
stat
=
GdipCreatePath
(
FillModeAlternate
,
&
path
);
BeginPath
(
graphics
->
hdc
);
draw_pie
(
graphics
,
x
,
y
,
width
,
height
,
startAngle
,
sweepAngle
);
EndPath
(
graphics
->
hdc
);
if
(
stat
==
Ok
)
{
stat
=
GdipAddPathPie
(
path
,
x
,
y
,
width
,
height
,
startAngle
,
sweepAngle
);
brush_fill_path
(
graphics
,
brush
);
if
(
stat
==
Ok
)
stat
=
GdipFillPath
(
graphics
,
brush
,
path
);
RestoreDC
(
graphics
->
hdc
,
save_state
);
GdipDeletePath
(
path
);
}
return
Ok
;
return
stat
;
}
GpStatus
WINGDIPAPI
GdipFillPieI
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
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