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
a8e87307
Commit
a8e87307
authored
Nov 18, 2022
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use GpPointF for drawing in widen_closed_figure.
parent
20065207
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
graphicspath.c
dlls/gdiplus/graphicspath.c
+14
-14
No files found.
dlls/gdiplus/graphicspath.c
View file @
a8e87307
...
...
@@ -2129,7 +2129,7 @@ static void widen_open_figure(const GpPointF *points, int start, int end,
(
*
last_point
)
->
type
|=
PathPointTypeCloseSubpath
;
}
static
void
widen_closed_figure
(
GpPath
*
path
,
int
start
,
int
end
,
static
void
widen_closed_figure
(
const
GpPointF
*
points
,
int
start
,
int
end
,
GpPen
*
pen
,
REAL
pen_width
,
path_list_node_t
**
last_point
)
{
int
i
;
...
...
@@ -2141,15 +2141,15 @@ static void widen_closed_figure(GpPath *path, int start, int end,
/* left outline */
prev_point
=
*
last_point
;
widen_joint
(
&
p
ath
->
pathdata
.
Points
[
end
],
&
path
->
pathdata
.
P
oints
[
start
],
&
p
ath
->
pathdata
.
P
oints
[
start
+
1
],
pen
,
pen_width
,
last_point
);
widen_joint
(
&
p
oints
[
end
],
&
p
oints
[
start
],
&
points
[
start
+
1
],
pen
,
pen_width
,
last_point
);
for
(
i
=
start
+
1
;
i
<
end
;
i
++
)
widen_joint
(
&
p
ath
->
pathdata
.
Points
[
i
-
1
],
&
path
->
pathdata
.
P
oints
[
i
],
&
p
ath
->
pathdata
.
P
oints
[
i
+
1
],
pen
,
pen_width
,
last_point
);
widen_joint
(
&
p
oints
[
i
-
1
],
&
p
oints
[
i
],
&
points
[
i
+
1
],
pen
,
pen_width
,
last_point
);
widen_joint
(
&
p
ath
->
pathdata
.
Points
[
end
-
1
],
&
path
->
pathdata
.
P
oints
[
end
],
&
p
ath
->
pathdata
.
P
oints
[
start
],
pen
,
pen_width
,
last_point
);
widen_joint
(
&
p
oints
[
end
-
1
],
&
p
oints
[
end
],
&
points
[
start
],
pen
,
pen_width
,
last_point
);
prev_point
->
next
->
type
=
PathPointTypeStart
;
(
*
last_point
)
->
type
|=
PathPointTypeCloseSubpath
;
...
...
@@ -2157,15 +2157,15 @@ static void widen_closed_figure(GpPath *path, int start, int end,
/* right outline */
prev_point
=
*
last_point
;
widen_joint
(
&
p
ath
->
pathdata
.
Points
[
start
],
&
path
->
pathdata
.
P
oints
[
end
],
&
p
ath
->
pathdata
.
P
oints
[
end
-
1
],
pen
,
pen_width
,
last_point
);
widen_joint
(
&
p
oints
[
start
],
&
p
oints
[
end
],
&
points
[
end
-
1
],
pen
,
pen_width
,
last_point
);
for
(
i
=
end
-
1
;
i
>
start
;
i
--
)
widen_joint
(
&
p
ath
->
pathdata
.
Points
[
i
+
1
],
&
path
->
pathdata
.
P
oints
[
i
],
&
p
ath
->
pathdata
.
P
oints
[
i
-
1
],
pen
,
pen_width
,
last_point
);
widen_joint
(
&
p
oints
[
i
+
1
],
&
p
oints
[
i
],
&
points
[
i
-
1
],
pen
,
pen_width
,
last_point
);
widen_joint
(
&
p
ath
->
pathdata
.
Points
[
start
+
1
],
&
path
->
pathdata
.
P
oints
[
start
],
&
p
ath
->
pathdata
.
P
oints
[
end
],
pen
,
pen_width
,
last_point
);
widen_joint
(
&
p
oints
[
start
+
1
],
&
p
oints
[
start
],
&
points
[
end
],
pen
,
pen_width
,
last_point
);
prev_point
->
next
->
type
=
PathPointTypeStart
;
(
*
last_point
)
->
type
|=
PathPointTypeCloseSubpath
;
...
...
@@ -2369,7 +2369,7 @@ GpStatus WINGDIPAPI GdipWidenPath(GpPath *path, GpPen *pen, GpMatrix *matrix,
if
(
pen
->
dash
!=
DashStyleSolid
)
widen_dashed_figure
(
flat_path
,
subpath_start
,
i
,
1
,
pen
,
pen_width
,
&
last_point
);
else
widen_closed_figure
(
flat_path
,
subpath_start
,
i
,
pen
,
pen_width
,
&
last_point
);
widen_closed_figure
(
flat_path
->
pathdata
.
Points
,
subpath_start
,
i
,
pen
,
pen_width
,
&
last_point
);
}
else
if
(
i
==
flat_path
->
pathdata
.
Count
-
1
||
(
types
[
i
+
1
]
&
PathPointTypePathTypeMask
)
==
PathPointTypeStart
)
...
...
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