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
2dbd0e16
Commit
2dbd0e16
authored
Oct 23, 2013
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement remaining dash styles in GdipWidenPath.
parent
1c35dd6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
graphicspath.c
dlls/gdiplus/graphicspath.c
+25
-5
No files found.
dlls/gdiplus/graphicspath.c
View file @
2dbd0e16
...
...
@@ -1941,12 +1941,35 @@ static void widen_dashed_figure(GpPath *path, GpPen *pen, int start, int end,
REAL
segment_pos
;
int
num_tmp_points
=
0
;
int
draw_start_cap
=
0
;
static
const
REAL
dash_dot_dot
[
6
]
=
{
3
.
0
,
1
.
0
,
1
.
0
,
1
.
0
,
1
.
0
,
1
.
0
};
if
(
end
<=
start
)
return
;
switch
(
pen
->
dash
)
{
case
DashStyleDash
:
default:
dash_pattern
=
dash_dot_dot
;
dash_count
=
2
;
break
;
case
DashStyleDot
:
dash_pattern
=
&
dash_dot_dot
[
2
];
dash_count
=
2
;
break
;
case
DashStyleDashDot
:
dash_pattern
=
dash_dot_dot
;
dash_count
=
4
;
break
;
case
DashStyleDashDotDot
:
dash_pattern
=
dash_dot_dot
;
dash_count
=
6
;
break
;
case
DashStyleCustom
:
dash_pattern
=
pen
->
dashes
;
dash_count
=
pen
->
numdashes
;
break
;
}
tmp_points
=
GdipAlloc
((
end
-
start
+
2
)
*
sizeof
(
GpPoint
));
if
(
!
tmp_points
)
return
;
/* FIXME */
...
...
@@ -2072,9 +2095,6 @@ GpStatus WINGDIPAPI GdipWidenPath(GpPath *path, GpPen *pen, GpMatrix *matrix,
if
(
pen
->
join
==
LineJoinRound
)
FIXME
(
"unimplemented line join %d
\n
"
,
pen
->
join
);
if
(
pen
->
dash
!=
DashStyleSolid
&&
pen
->
dash
!=
DashStyleCustom
)
FIXME
(
"unimplemented dash style %d
\n
"
,
pen
->
dash
);
if
(
pen
->
align
!=
PenAlignmentCenter
)
FIXME
(
"unimplemented pen alignment %d
\n
"
,
pen
->
align
);
...
...
@@ -2087,7 +2107,7 @@ GpStatus WINGDIPAPI GdipWidenPath(GpPath *path, GpPen *pen, GpMatrix *matrix,
if
((
type
&
PathPointTypeCloseSubpath
)
==
PathPointTypeCloseSubpath
)
{
if
(
pen
->
dash
==
DashStyleCustom
)
if
(
pen
->
dash
!=
DashStyleSolid
)
widen_dashed_figure
(
flat_path
,
pen
,
subpath_start
,
i
,
1
,
&
last_point
);
else
widen_closed_figure
(
flat_path
,
pen
,
subpath_start
,
i
,
&
last_point
);
...
...
@@ -2095,7 +2115,7 @@ GpStatus WINGDIPAPI GdipWidenPath(GpPath *path, GpPen *pen, GpMatrix *matrix,
else
if
(
i
==
flat_path
->
pathdata
.
Count
-
1
||
(
flat_path
->
pathdata
.
Types
[
i
+
1
]
&
PathPointTypePathTypeMask
)
==
PathPointTypeStart
)
{
if
(
pen
->
dash
==
DashStyleCustom
)
if
(
pen
->
dash
!=
DashStyleSolid
)
widen_dashed_figure
(
flat_path
,
pen
,
subpath_start
,
i
,
0
,
&
last_point
);
else
widen_open_figure
(
flat_path
->
pathdata
.
Points
,
pen
,
subpath_start
,
i
,
pen
->
startcap
,
pen
->
customstart
,
pen
->
endcap
,
pen
->
customend
,
&
last_point
);
...
...
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