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
e68d68fb
Commit
e68d68fb
authored
Jun 22, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix setting the path flags in PolyPolyline and PolyPolygon.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8a29c57f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
path.c
dlls/gdi32/path.c
+22
-9
No files found.
dlls/gdi32/path.c
View file @
e68d68fb
...
...
@@ -1298,16 +1298,24 @@ static BOOL pathdrv_Polygon( PHYSDEV dev, const POINT *pts, INT cbPoints )
static
BOOL
pathdrv_PolyPolygon
(
PHYSDEV
dev
,
const
POINT
*
pts
,
const
INT
*
counts
,
UINT
polygons
)
{
struct
path_physdev
*
physdev
=
get_path_physdev
(
dev
);
UINT
poly
;
UINT
poly
,
count
;
BYTE
*
type
;
for
(
poly
=
0
;
poly
<
polygons
;
poly
++
)
{
type
=
add_log_points
(
physdev
,
pts
,
counts
[
poly
],
PT_LINETO
);
if
(
!
type
)
return
FALSE
;
if
(
!
polygons
)
return
FALSE
;
for
(
poly
=
count
=
0
;
poly
<
polygons
;
poly
++
)
{
if
(
counts
[
poly
]
<
2
)
return
FALSE
;
count
+=
counts
[
poly
];
}
type
=
add_log_points
(
physdev
,
pts
,
count
,
PT_LINETO
);
if
(
!
type
)
return
FALSE
;
/* make the first point of each polyline a PT_MOVETO, and close the last one */
for
(
poly
=
0
;
poly
<
polygons
;
type
+=
counts
[
poly
++
])
{
type
[
0
]
=
PT_MOVETO
;
/* win98 adds an extra line to close the figure for some reason */
add_log_points
(
physdev
,
pts
,
1
,
PT_LINETO
|
PT_CLOSEFIGURE
);
pts
+=
counts
[
poly
];
type
[
counts
[
poly
]
-
1
]
=
PT_LINETO
|
PT_CLOSEFIGURE
;
}
return
TRUE
;
}
...
...
@@ -1322,13 +1330,18 @@ static BOOL pathdrv_PolyPolyline( PHYSDEV dev, const POINT* pts, const DWORD* co
UINT
poly
,
count
;
BYTE
*
type
;
for
(
poly
=
count
=
0
;
poly
<
polylines
;
poly
++
)
count
+=
counts
[
poly
];
if
(
!
polylines
)
return
FALSE
;
for
(
poly
=
count
=
0
;
poly
<
polylines
;
poly
++
)
{
if
(
counts
[
poly
]
<
2
)
return
FALSE
;
count
+=
counts
[
poly
];
}
type
=
add_log_points
(
physdev
,
pts
,
count
,
PT_LINETO
);
if
(
!
type
)
return
FALSE
;
/* make the first point of each polyline a PT_MOVETO */
for
(
poly
=
0
;
poly
<
polylines
;
poly
++
,
type
+=
counts
[
poly
])
*
type
=
PT_MOVETO
;
for
(
poly
=
0
;
poly
<
polylines
;
type
+=
counts
[
poly
++
])
*
type
=
PT_MOVETO
;
return
TRUE
;
}
...
...
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