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
6920cf68
Commit
6920cf68
authored
Oct 19, 2016
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Reimplement GdipDrawPolygon based on GdipDrawPath.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6c876de7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
graphics.c
dlls/gdiplus/graphics.c
+9
-17
No files found.
dlls/gdiplus/graphics.c
View file @
6920cf68
...
...
@@ -6164,8 +6164,8 @@ GpStatus WINGDIPAPI GdipSetClipRegion(GpGraphics *graphics, GpRegion *region,
GpStatus
WINGDIPAPI
GdipDrawPolygon
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
INT
save_state
;
POINT
*
pti
;
GpStatus
status
;
GpPath
*
path
;
TRACE
(
"(%p, %p, %d)
\n
"
,
graphics
,
points
,
count
);
...
...
@@ -6175,24 +6175,16 @@ GpStatus WINGDIPAPI GdipDrawPolygon(GpGraphics *graphics,GpPen *pen,GDIPCONST Gp
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
!
graphics
->
hdc
)
{
FIXME
(
"graphics object has no HDC
\n
"
);
return
Ok
;
}
pti
=
heap_alloc_zero
(
sizeof
(
POINT
)
*
count
);
save_state
=
prepare_dc
(
graphics
,
pen
);
SelectObject
(
graphics
->
hdc
,
GetStockObject
(
NULL_BRUSH
));
status
=
GdipCreatePath
(
FillModeAlternate
,
&
path
);
if
(
status
!=
Ok
)
return
status
;
transform_and_round_points
(
graphics
,
pti
,
(
GpPointF
*
)
points
,
count
);
Polygon
(
graphics
->
hdc
,
pti
,
count
);
status
=
GdipAddPathPolygon
(
path
,
points
,
count
);
if
(
status
==
Ok
)
status
=
GdipDrawPath
(
graphics
,
pen
,
path
);
restore_dc
(
graphics
,
save_state
);
heap_free
(
pti
);
GdipDeletePath
(
path
);
return
Ok
;
return
status
;
}
GpStatus
WINGDIPAPI
GdipDrawPolygonI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPoint
*
points
,
...
...
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