Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
237a0ada
Commit
237a0ada
authored
Mar 26, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Implement d2d_d3d_render_target_GetFactory().
parent
829e8931
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
d2d1_private.h
dlls/d2d1/d2d1_private.h
+1
-0
render_target.c
dlls/d2d1/render_target.c
+10
-2
No files found.
dlls/d2d1/d2d1_private.h
View file @
237a0ada
...
...
@@ -50,6 +50,7 @@ struct d2d_d3d_render_target
IDWriteTextRenderer
IDWriteTextRenderer_iface
;
LONG
refcount
;
ID2D1Factory
*
factory
;
ID3D10Device
*
device
;
ID3D10RenderTargetView
*
view
;
ID3D10StateBlock
*
stateblock
;
...
...
dlls/d2d1/render_target.c
View file @
237a0ada
...
...
@@ -235,6 +235,7 @@ static ULONG STDMETHODCALLTYPE d2d_d3d_render_target_Release(ID2D1RenderTarget *
render_target
->
stateblock
->
lpVtbl
->
Release
(
render_target
->
stateblock
);
ID3D10RenderTargetView_Release
(
render_target
->
view
);
ID3D10Device_Release
(
render_target
->
device
);
ID2D1Factory_Release
(
render_target
->
factory
);
HeapFree
(
GetProcessHeap
(),
0
,
render_target
);
}
...
...
@@ -243,9 +244,12 @@ static ULONG STDMETHODCALLTYPE d2d_d3d_render_target_Release(ID2D1RenderTarget *
static
void
STDMETHODCALLTYPE
d2d_d3d_render_target_GetFactory
(
ID2D1RenderTarget
*
iface
,
ID2D1Factory
**
factory
)
{
FIXME
(
"iface %p, factory %p stub!
\n
"
,
iface
,
factory
);
struct
d2d_d3d_render_target
*
render_target
=
impl_from_ID2D1RenderTarget
(
iface
);
TRACE
(
"iface %p, factory %p.
\n
"
,
iface
,
factory
);
*
factory
=
NULL
;
*
factory
=
render_target
->
factory
;
ID2D1Factory_AddRef
(
*
factory
);
}
static
HRESULT
STDMETHODCALLTYPE
d2d_d3d_render_target_CreateBitmap
(
ID2D1RenderTarget
*
iface
,
...
...
@@ -1361,10 +1365,13 @@ HRESULT d2d_d3d_render_target_init(struct d2d_d3d_render_target *render_target,
render_target
->
ID2D1RenderTarget_iface
.
lpVtbl
=
&
d2d_d3d_render_target_vtbl
;
render_target
->
IDWriteTextRenderer_iface
.
lpVtbl
=
&
d2d_text_renderer_vtbl
;
render_target
->
refcount
=
1
;
render_target
->
factory
=
factory
;
ID2D1Factory_AddRef
(
render_target
->
factory
);
if
(
FAILED
(
hr
=
IDXGISurface_GetDevice
(
surface
,
&
IID_ID3D10Device
,
(
void
**
)
&
render_target
->
device
)))
{
WARN
(
"Failed to get device interface, hr %#x.
\n
"
,
hr
);
ID2D1Factory_Release
(
render_target
->
factory
);
return
hr
;
}
...
...
@@ -1521,5 +1528,6 @@ err:
ID3D10RenderTargetView_Release
(
render_target
->
view
);
if
(
render_target
->
device
)
ID3D10Device_Release
(
render_target
->
device
);
ID2D1Factory_Release
(
render_target
->
factory
);
return
hr
;
}
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