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
02887b6c
Commit
02887b6c
authored
Aug 07, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fixed bug drawing custom caps.
parent
ddea5bd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
graphics.c
dlls/gdiplus/graphics.c
+3
-3
No files found.
dlls/gdiplus/graphics.c
View file @
02887b6c
...
...
@@ -488,7 +488,7 @@ static GpStatus draw_polyline(GpGraphics *graphics, GpPen *pen,
else
if
((
pen
->
startcap
==
LineCapCustom
)
&&
pen
->
customstart
)
shorten_line_amt
(
ptcopy
[
1
].
X
,
ptcopy
[
1
].
Y
,
&
ptcopy
[
0
].
X
,
&
ptcopy
[
0
].
Y
,
pen
->
custom
end
->
inset
*
pen
->
width
);
pen
->
custom
start
->
inset
*
pen
->
width
);
draw_cap
(
graphics
,
pen
->
brush
->
lb
.
lbColor
,
pen
->
endcap
,
pen
->
width
,
pen
->
customend
,
pt
[
count
-
2
].
X
,
pt
[
count
-
2
].
Y
,
pt
[
count
-
1
].
X
,
pt
[
count
-
1
].
Y
);
...
...
@@ -582,7 +582,7 @@ static GpStatus draw_polybezier(GpGraphics *graphics, GpPen *pen,
if
(
pen
->
startcap
==
LineCapArrowAnchor
)
shorten_bezier_amt
(
ptcopy
,
pen
->
width
,
TRUE
);
else
if
((
pen
->
startcap
==
LineCapCustom
)
&&
pen
->
customstart
)
shorten_bezier_amt
(
ptcopy
,
pen
->
width
*
pen
->
custom
end
->
inset
,
TRUE
);
shorten_bezier_amt
(
ptcopy
,
pen
->
width
*
pen
->
custom
start
->
inset
,
TRUE
);
/* the direction of the line cap is parallel to the direction at the
* end of the bezier (which, if it has been shortened, is not the same
...
...
@@ -689,7 +689,7 @@ static GpStatus draw_poly(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *
shorten_bezier_amt
(
&
ptcopy
[
j
-
1
],
pen
->
width
,
TRUE
);
else
if
((
pen
->
startcap
==
LineCapCustom
)
&&
pen
->
customstart
)
shorten_bezier_amt
(
&
ptcopy
[
j
-
1
],
pen
->
width
*
pen
->
custom
end
->
inset
,
TRUE
);
pen
->
width
*
pen
->
custom
start
->
inset
,
TRUE
);
draw_cap
(
graphics
,
pen
->
brush
->
lb
.
lbColor
,
pen
->
startcap
,
pen
->
width
,
pen
->
customstart
,
pt
[
j
-
1
].
X
-
(
ptcopy
[
j
-
1
].
X
-
ptcopy
[
j
].
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