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
0fd51346
Commit
0fd51346
authored
Nov 24, 2022
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix position of Custom Cap when Scale is different that 1.
parent
be7db845
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
graphicspath.c
dlls/gdiplus/graphicspath.c
+4
-4
No files found.
dlls/gdiplus/graphicspath.c
View file @
0fd51346
...
...
@@ -2128,13 +2128,13 @@ static void add_anchor(const GpPointF *endpoint, const GpPointF *nextpoint,
TRACE
(
"GpCustomLineCap fill: %d basecap: %d inset: %f join: %d scale: %f pen_width:%f
\n
"
,
custom
->
fill
,
custom
->
basecap
,
custom
->
inset
,
custom
->
join
,
custom
->
scale
,
pen_width
);
/* Coordination where cap needs to be drawn */
posx
=
endpoint
->
X
-
pen_width
*
segment_dx
/
segment_length
;
posy
=
endpoint
->
Y
-
pen_width
*
segment_dy
/
segment_length
;
sina
=
-
pen_width
*
custom
->
scale
*
segment_dx
/
segment_length
;
cosa
=
pen_width
*
custom
->
scale
*
segment_dy
/
segment_length
;
/* Coordination where cap needs to be drawn */
posx
=
endpoint
->
X
+
sina
;
posy
=
endpoint
->
Y
-
cosa
;
if
(
!
custom
->
fill
)
{
tmp_points
=
heap_alloc_zero
(
custom
->
pathdata
.
Count
*
sizeof
(
GpPoint
));
...
...
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