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
bf1255e2
Commit
bf1255e2
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::GetParent().
parent
a6b9a637
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
surface.c
dlls/dxgi/surface.c
+4
-2
device.c
dlls/dxgi/tests/device.c
+17
-0
No files found.
dlls/dxgi/surface.c
View file @
bf1255e2
...
...
@@ -130,9 +130,11 @@ static HRESULT STDMETHODCALLTYPE dxgi_surface_GetPrivateData(IDXGISurface *iface
static
HRESULT
STDMETHODCALLTYPE
dxgi_surface_GetParent
(
IDXGISurface
*
iface
,
REFIID
riid
,
void
**
parent
)
{
FIXME
(
"iface %p, riid %s, parent %p stub!
\n
"
,
iface
,
debugstr_guid
(
riid
),
parent
)
;
struct
dxgi_surface
*
This
=
(
struct
dxgi_surface
*
)
iface
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, riid %s, parent %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
parent
);
return
IDXGIDevice_QueryInterface
(
This
->
device
,
riid
,
parent
);
}
/* IDXGIDeviceSubObject methods */
...
...
dlls/dxgi/tests/device.c
View file @
bf1255e2
...
...
@@ -153,12 +153,29 @@ static void test_create_surface(IDXGIDevice *device)
static
void
test_parents
(
IDXGIDevice
*
device
)
{
DXGI_SURFACE_DESC
surface_desc
;
IDXGISurface
*
surface
;
IDXGIFactory
*
factory
;
IDXGIAdapter
*
adapter
;
IDXGIOutput
*
output
;
IUnknown
*
parent
;
HRESULT
hr
;
surface_desc
.
Width
=
512
;
surface_desc
.
Height
=
512
;
surface_desc
.
Format
=
DXGI_FORMAT_R8G8B8A8_UNORM
;
surface_desc
.
SampleDesc
.
Count
=
1
;
surface_desc
.
SampleDesc
.
Quality
=
0
;
hr
=
IDXGIDevice_CreateSurface
(
device
,
&
surface_desc
,
1
,
DXGI_USAGE_RENDER_TARGET_OUTPUT
,
NULL
,
&
surface
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create a dxgi surface, hr %#x
\n
"
,
hr
);
hr
=
IDXGISurface_GetParent
(
surface
,
&
IID_IDXGIDevice
,
(
void
**
)
&
parent
);
IDXGISurface_Release
(
surface
);
ok
(
SUCCEEDED
(
hr
),
"GetParent failed, hr %#x.
\n
"
,
hr
);
ok
(
parent
==
(
IUnknown
*
)
device
,
"Got parent %p, expected %p.
\n
"
,
parent
,
device
);
IUnknown_Release
(
parent
);
hr
=
IDXGIDevice_GetAdapter
(
device
,
&
adapter
);
ok
(
SUCCEEDED
(
hr
),
"GetAdapter failed, hr %#x.
\n
"
,
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