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
8b1bab52
Commit
8b1bab52
authored
Jan 04, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Skip empty segments at the beginning and end of a line to make sure the caps are correct.
parent
5f2371c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
objects.c
dlls/gdi32/dibdrv/objects.c
+4
-0
No files found.
dlls/gdi32/dibdrv/objects.c
View file @
8b1bab52
...
...
@@ -1334,6 +1334,10 @@ static BOOL wide_pen_lines(dibdrv_physdev *pdev, int num, POINT *pts, BOOL close
assert
(
total
!=
0
);
/* wide pens should always be drawn through a region */
assert
(
num
>=
2
);
/* skip empty segments */
while
(
num
>
2
&&
pts
[
0
].
x
==
pts
[
1
].
x
&&
pts
[
0
].
y
==
pts
[
1
].
y
)
{
pts
++
;
num
--
;
}
while
(
num
>
2
&&
pts
[
num
-
1
].
x
==
pts
[
num
-
2
].
x
&&
pts
[
num
-
1
].
y
==
pts
[
num
-
2
].
y
)
num
--
;
if
(
pdev
->
pen_join
==
PS_JOIN_ROUND
||
pdev
->
pen_endcap
==
PS_ENDCAP_ROUND
)
round_cap
=
CreateEllipticRgn
(
-
(
pdev
->
pen_width
/
2
),
-
(
pdev
->
pen_width
/
2
),
(
pdev
->
pen_width
+
1
)
/
2
,
(
pdev
->
pen_width
+
1
)
/
2
);
...
...
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