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
f4879dce
Commit
f4879dce
authored
Feb 24, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement IDXGISwapChain::GetBuffer().
parent
eda929d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
swapchain.c
dlls/dxgi/swapchain.c
+27
-2
No files found.
dlls/dxgi/swapchain.c
View file @
f4879dce
...
...
@@ -164,10 +164,35 @@ static HRESULT STDMETHODCALLTYPE dxgi_swapchain_Present(IDXGISwapChain *iface, U
static
HRESULT
STDMETHODCALLTYPE
dxgi_swapchain_GetBuffer
(
IDXGISwapChain
*
iface
,
UINT
buffer_idx
,
REFIID
riid
,
void
**
surface
)
{
FIXME
(
"iface %p, buffer_idx %u, riid %s, surface %p stub!
\n
"
,
struct
dxgi_swapchain
*
This
=
(
struct
dxgi_swapchain
*
)
iface
;
IWineD3DSurface
*
backbuffer
;
IUnknown
*
parent
;
HRESULT
hr
;
TRACE
(
"iface %p, buffer_idx %u, riid %s, surface %p
\n
"
,
iface
,
buffer_idx
,
debugstr_guid
(
riid
),
surface
);
return
E_NOTIMPL
;
EnterCriticalSection
(
&
dxgi_cs
);
hr
=
IWineD3DSwapChain_GetBackBuffer
(
This
->
wined3d_swapchain
,
buffer_idx
,
WINED3DBACKBUFFER_TYPE_MONO
,
&
backbuffer
);
if
(
FAILED
(
hr
))
{
LeaveCriticalSection
(
&
dxgi_cs
);
return
hr
;
}
hr
=
IWineD3DSurface_GetParent
(
backbuffer
,
&
parent
);
IWineD3DSurface_Release
(
backbuffer
);
LeaveCriticalSection
(
&
dxgi_cs
);
if
(
FAILED
(
hr
))
{
return
hr
;
}
hr
=
IUnknown_QueryInterface
(
parent
,
riid
,
surface
);
IUnknown_Release
(
parent
);
return
hr
;
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_swapchain_SetFullscreenState
(
IDXGISwapChain
*
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