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
c9d36114
Commit
c9d36114
authored
Aug 01, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1/commandlist: Handle recording in RestoreDrawingState().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
3aeff98f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
device.c
dlls/d2d1/device.c
+19
-5
No files found.
dlls/d2d1/device.c
View file @
c9d36114
...
...
@@ -1625,16 +1625,30 @@ static void STDMETHODCALLTYPE d2d_device_context_RestoreDrawingState(ID2D1Device
ID2D1DrawingStateBlock
*
state_block
)
{
struct
d2d_state_block
*
state_block_impl
=
unsafe_impl_from_ID2D1DrawingStateBlock
(
state_block
);
struct
d2d_device_context
*
render_targe
t
=
impl_from_ID2D1DeviceContext
(
iface
);
struct
d2d_device_context
*
contex
t
=
impl_from_ID2D1DeviceContext
(
iface
);
TRACE
(
"iface %p, state_block %p.
\n
"
,
iface
,
state_block
);
render_target
->
drawing_state
=
state_block_impl
->
drawing_state
;
if
(
context
->
target
.
type
==
D2D_TARGET_COMMAND_LIST
)
{
struct
d2d_command_list
*
command_list
=
context
->
target
.
command_list
;
if
(
context
->
drawing_state
.
antialiasMode
!=
state_block_impl
->
drawing_state
.
antialiasMode
)
d2d_command_list_set_antialias_mode
(
command_list
,
state_block_impl
->
drawing_state
.
antialiasMode
);
d2d_command_list_set_text_antialias_mode
(
command_list
,
state_block_impl
->
drawing_state
.
textAntialiasMode
);
d2d_command_list_set_tags
(
command_list
,
state_block_impl
->
drawing_state
.
tag1
,
state_block_impl
->
drawing_state
.
tag2
);
d2d_command_list_set_transform
(
command_list
,
&
state_block_impl
->
drawing_state
.
transform
);
d2d_command_list_set_primitive_blend
(
command_list
,
state_block_impl
->
drawing_state
.
primitiveBlend
);
d2d_command_list_set_unit_mode
(
command_list
,
state_block_impl
->
drawing_state
.
unitMode
);
d2d_command_list_set_text_rendering_params
(
command_list
,
state_block_impl
->
text_rendering_params
);
}
context
->
drawing_state
=
state_block_impl
->
drawing_state
;
if
(
state_block_impl
->
text_rendering_params
)
IDWriteRenderingParams_AddRef
(
state_block_impl
->
text_rendering_params
);
if
(
render_targe
t
->
text_rendering_params
)
IDWriteRenderingParams_Release
(
render_targe
t
->
text_rendering_params
);
render_targe
t
->
text_rendering_params
=
state_block_impl
->
text_rendering_params
;
if
(
contex
t
->
text_rendering_params
)
IDWriteRenderingParams_Release
(
contex
t
->
text_rendering_params
);
contex
t
->
text_rendering_params
=
state_block_impl
->
text_rendering_params
;
}
static
void
STDMETHODCALLTYPE
d2d_device_context_PushAxisAlignedClip
(
ID2D1DeviceContext1
*
iface
,
...
...
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