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
78261ecb
Commit
78261ecb
authored
Apr 28, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
May 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Support recording pen custom end line cap.
parent
abdd45c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
metafile.c
dlls/gdiplus/metafile.c
+12
-1
No files found.
dlls/gdiplus/metafile.c
View file @
78261ecb
...
...
@@ -4745,6 +4745,7 @@ static GpStatus METAFILE_AddPathObject(GpMetafile *metafile, GpPath *path, DWORD
static
GpStatus
METAFILE_AddPenObject
(
GpMetafile
*
metafile
,
GpPen
*
pen
,
DWORD
*
id
)
{
DWORD
custom_start_cap_size
=
0
,
custom_start_cap_data_size
=
0
,
custom_start_cap_path_size
=
0
;
DWORD
custom_end_cap_size
=
0
,
custom_end_cap_data_size
=
0
,
custom_end_cap_path_size
=
0
;
DWORD
i
,
data_flags
,
pen_data_size
,
brush_size
;
EmfPlusObject
*
object_record
;
EmfPlusPenData
*
pen_data
;
...
...
@@ -4816,7 +4817,10 @@ static GpStatus METAFILE_AddPenObject(GpMetafile *metafile, GpPen *pen, DWORD *i
}
if
(
pen
->
customend
)
{
FIXME
(
"ignoring custom end cup
\n
"
);
data_flags
|=
PenDataCustomEndCap
;
METAFILE_PrepareCustomLineCapData
(
pen
->
customend
,
&
custom_end_cap_size
,
&
custom_end_cap_data_size
,
&
custom_end_cap_path_size
);
pen_data_size
+=
custom_end_cap_size
;
}
stat
=
METAFILE_PrepareBrushData
(
pen
->
brush
,
&
brush_size
);
...
...
@@ -4912,6 +4916,13 @@ static GpStatus METAFILE_AddPenObject(GpMetafile *metafile, GpPen *pen, DWORD *i
custom_start_cap_path_size
);
i
+=
custom_start_cap_size
;
}
if
(
data_flags
&
PenDataCustomEndCap
)
{
METAFILE_FillCustomLineCapData
(
pen
->
customend
,
pen_data
->
OptionalData
+
i
,
pen
->
miterlimit
,
custom_end_cap_data_size
,
custom_end_cap_path_size
);
i
+=
custom_end_cap_size
;
}
METAFILE_FillBrushData
(
pen
->
brush
,
(
EmfPlusBrush
*
)(
object_record
->
ObjectData
.
pen
.
data
+
pen_data_size
));
...
...
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