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
a6b9a637
Commit
a6b9a637
authored
Dec 07, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement IDXGISurface::GetDevice().
parent
4e29ade6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
device.c
dlls/dxgi/device.c
+1
-1
dxgi_private.h
dlls/dxgi/dxgi_private.h
+2
-1
surface.c
dlls/dxgi/surface.c
+8
-3
No files found.
dlls/dxgi/device.c
View file @
a6b9a637
...
...
@@ -274,7 +274,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_device_create_surface(IWineDXGIDevice *ifa
return
E_OUTOFMEMORY
;
}
hr
=
dxgi_surface_init
(
object
,
outer
);
hr
=
dxgi_surface_init
(
object
,
(
IDXGIDevice
*
)
iface
,
outer
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to initialize surface, hr %#x.
\n
"
,
hr
);
...
...
dlls/dxgi/dxgi_private.h
View file @
a6b9a637
...
...
@@ -136,8 +136,9 @@ struct dxgi_surface
const
struct
IUnknownVtbl
*
inner_unknown_vtbl
;
IUnknown
*
outer_unknown
;
LONG
refcount
;
IDXGIDevice
*
device
;
};
HRESULT
dxgi_surface_init
(
struct
dxgi_surface
*
surface
,
IUnknown
*
outer
)
DECLSPEC_HIDDEN
;
HRESULT
dxgi_surface_init
(
struct
dxgi_surface
*
surface
,
I
DXGIDevice
*
device
,
I
Unknown
*
outer
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_DXGI_PRIVATE_H */
dlls/dxgi/surface.c
View file @
a6b9a637
...
...
@@ -72,6 +72,7 @@ static ULONG STDMETHODCALLTYPE dxgi_surface_inner_Release(IUnknown *iface)
if
(
!
refcount
)
{
IDXGIDevice_Release
(
This
->
device
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -138,9 +139,11 @@ static HRESULT STDMETHODCALLTYPE dxgi_surface_GetParent(IDXGISurface *iface, REF
static
HRESULT
STDMETHODCALLTYPE
dxgi_surface_GetDevice
(
IDXGISurface
*
iface
,
REFIID
riid
,
void
**
device
)
{
FIXME
(
"iface %p, riid %s, device %p stub!
\n
"
,
iface
,
debugstr_guid
(
riid
),
device
)
;
struct
dxgi_surface
*
This
=
(
struct
dxgi_surface
*
)
iface
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, riid %s, device %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
device
);
return
IDXGIDevice_QueryInterface
(
This
->
device
,
riid
,
device
);
}
/* IDXGISurface methods */
...
...
@@ -192,12 +195,14 @@ static const struct IUnknownVtbl dxgi_surface_inner_unknown_vtbl =
dxgi_surface_inner_Release
,
};
HRESULT
dxgi_surface_init
(
struct
dxgi_surface
*
surface
,
IUnknown
*
outer
)
HRESULT
dxgi_surface_init
(
struct
dxgi_surface
*
surface
,
I
DXGIDevice
*
device
,
I
Unknown
*
outer
)
{
surface
->
vtbl
=
&
dxgi_surface_vtbl
;
surface
->
inner_unknown_vtbl
=
&
dxgi_surface_inner_unknown_vtbl
;
surface
->
refcount
=
1
;
surface
->
outer_unknown
=
outer
?
outer
:
(
IUnknown
*
)
&
surface
->
inner_unknown_vtbl
;
surface
->
device
=
device
;
IDXGIDevice_AddRef
(
device
);
return
S_OK
;
}
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