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
4674e051
Commit
4674e051
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: Implement setting primitive blend mode.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
bb83067b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
device.c
dlls/d2d1/device.c
+18
-3
No files found.
dlls/d2d1/device.c
View file @
4674e051
...
...
@@ -2414,14 +2414,29 @@ static void STDMETHODCALLTYPE d2d_device_context_GetRenderingControls(ID2D1Devic
static
void
STDMETHODCALLTYPE
d2d_device_context_SetPrimitiveBlend
(
ID2D1DeviceContext1
*
iface
,
D2D1_PRIMITIVE_BLEND
primitive_blend
)
{
FIXME
(
"iface %p, primitive_blend %#x stub!
\n
"
,
iface
,
primitive_blend
);
struct
d2d_device_context
*
context
=
impl_from_ID2D1DeviceContext
(
iface
);
TRACE
(
"iface %p, primitive_blend %u.
\n
"
,
iface
,
primitive_blend
);
if
(
primitive_blend
>
D2D1_PRIMITIVE_BLEND_MAX
)
{
WARN
(
"Unknown blend mode %u.
\n
"
,
primitive_blend
);
return
;
}
if
(
context
->
target
.
type
==
D2D_TARGET_COMMAND_LIST
)
d2d_command_list_set_primitive_blend
(
context
->
target
.
command_list
,
primitive_blend
);
context
->
drawing_state
.
primitiveBlend
=
primitive_blend
;
}
static
D2D1_PRIMITIVE_BLEND
STDMETHODCALLTYPE
d2d_device_context_GetPrimitiveBlend
(
ID2D1DeviceContext1
*
iface
)
{
FIXME
(
"iface %p stub!
\n
"
,
iface
);
struct
d2d_device_context
*
context
=
impl_from_ID2D1DeviceContext
(
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
return
D2D1_PRIMITIVE_BLEND_SOURCE_OVER
;
return
context
->
drawing_state
.
primitiveBlend
;
}
static
void
STDMETHODCALLTYPE
d2d_device_context_SetUnitMode
(
ID2D1DeviceContext1
*
iface
,
D2D1_UNIT_MODE
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