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
bc4afb8b
Commit
bc4afb8b
authored
Jun 12, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Update to ID2D1DeviceContext1.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
6ead654f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
d2d1_private.h
dlls/d2d1/d2d1_private.h
+1
-1
device.c
dlls/d2d1/device.c
+0
-0
effect.c
dlls/d2d1/effect.c
+3
-3
No files found.
dlls/d2d1/d2d1_private.h
View file @
bc4afb8b
...
...
@@ -154,7 +154,7 @@ enum d2d_device_context_sampler_limits
struct
d2d_device_context
{
ID2D1DeviceContext
ID2D1DeviceContext
_iface
;
ID2D1DeviceContext
1
ID2D1DeviceContext1
_iface
;
ID2D1GdiInteropRenderTarget
ID2D1GdiInteropRenderTarget_iface
;
IDWriteTextRenderer
IDWriteTextRenderer_iface
;
IUnknown
IUnknown_iface
;
...
...
dlls/d2d1/device.c
View file @
bc4afb8b
This diff is collapsed.
Click to expand it.
dlls/d2d1/effect.c
View file @
bc4afb8b
...
...
@@ -43,7 +43,7 @@ static void d2d_effect_context_cleanup(struct d2d_effect_context *effect_context
IUnknown_Release
(
effect_context
->
shaders
[
i
].
shader
);
heap_free
(
effect_context
->
shaders
);
ID2D1DeviceContext
_Release
(
&
effect_context
->
device_context
->
ID2D1DeviceContext
_iface
);
ID2D1DeviceContext
1_Release
(
&
effect_context
->
device_context
->
ID2D1DeviceContext1
_iface
);
}
static
HRESULT
d2d_effect_context_add_shader
(
struct
d2d_effect_context
*
effect_context
,
...
...
@@ -116,7 +116,7 @@ static void STDMETHODCALLTYPE d2d_effect_context_GetDpi(ID2D1EffectContext *ifac
TRACE
(
"iface %p, dpi_x %p, dpi_y %p.
\n
"
,
iface
,
dpi_x
,
dpi_y
);
ID2D1DeviceContext
_GetDpi
(
&
effect_context
->
device_context
->
ID2D1DeviceContext
_iface
,
dpi_x
,
dpi_y
);
ID2D1DeviceContext
1_GetDpi
(
&
effect_context
->
device_context
->
ID2D1DeviceContext1
_iface
,
dpi_x
,
dpi_y
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_effect_context_CreateEffect
(
ID2D1EffectContext
*
iface
,
...
...
@@ -362,7 +362,7 @@ void d2d_effect_context_init(struct d2d_effect_context *effect_context, struct d
effect_context
->
ID2D1EffectContext_iface
.
lpVtbl
=
&
d2d_effect_context_vtbl
;
effect_context
->
refcount
=
1
;
effect_context
->
device_context
=
device_context
;
ID2D1DeviceContext
_AddRef
(
&
device_context
->
ID2D1DeviceContext
_iface
);
ID2D1DeviceContext
1_AddRef
(
&
device_context
->
ID2D1DeviceContext1
_iface
);
}
static
inline
struct
d2d_effect
*
impl_from_ID2D1Effect
(
ID2D1Effect
*
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