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
d418657e
Commit
d418657e
authored
Aug 03, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1/commandlist: Fix primitive blend playback.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
4674e051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
command_list.c
dlls/d2d1/command_list.c
+32
-1
No files found.
dlls/d2d1/command_list.c
View file @
d418657e
...
...
@@ -297,7 +297,38 @@ static HRESULT STDMETHODCALLTYPE d2d_command_list_Stream(ID2D1CommandList *iface
case
D2D_COMMAND_SET_PRIMITIVE_BLEND
:
{
const
struct
d2d_command_set_primitive_blend
*
c
=
data
;
hr
=
ID2D1CommandSink_SetPrimitiveBlend
(
sink
,
c
->
primitive_blend
);
ID2D1CommandSink1
*
sink1
;
ID2D1CommandSink4
*
sink4
;
switch
(
c
->
primitive_blend
)
{
case
D2D1_PRIMITIVE_BLEND_SOURCE_OVER
:
case
D2D1_PRIMITIVE_BLEND_COPY
:
hr
=
ID2D1CommandSink_SetPrimitiveBlend
(
sink
,
c
->
primitive_blend
);
break
;
case
D2D1_PRIMITIVE_BLEND_MIN
:
case
D2D1_PRIMITIVE_BLEND_ADD
:
if
(
SUCCEEDED
(
ID2D1CommandSink_QueryInterface
(
sink
,
&
IID_ID2D1CommandSink1
,
(
void
**
)
&
sink1
)))
{
hr
=
ID2D1CommandSink1_SetPrimitiveBlend1
(
sink1
,
c
->
primitive_blend
);
ID2D1CommandSink1_Release
(
sink1
);
}
else
hr
=
ID2D1CommandSink_SetPrimitiveBlend
(
sink
,
D2D1_PRIMITIVE_BLEND_SOURCE_OVER
);
break
;
case
D2D1_PRIMITIVE_BLEND_MAX
:
if
(
SUCCEEDED
(
ID2D1CommandSink_QueryInterface
(
sink
,
&
IID_ID2D1CommandSink4
,
(
void
**
)
&
sink4
)))
{
hr
=
ID2D1CommandSink4_SetPrimitiveBlend2
(
sink4
,
c
->
primitive_blend
);
ID2D1CommandSink4_Release
(
sink4
);
}
else
hr
=
ID2D1CommandSink_SetPrimitiveBlend
(
sink
,
D2D1_PRIMITIVE_BLEND_SOURCE_OVER
);
break
;
default:
FIXME
(
"Unexpected blend mode %u.
\n
"
,
c
->
primitive_blend
);
hr
=
E_UNEXPECTED
;
}
break
;
}
case
D2D_COMMAND_SET_UNIT_MODE
:
...
...
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