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
bd1ec9eb
Commit
bd1ec9eb
authored
Dec 16, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Cleanup IWineD3DDeviceImpl_GetBackBuffer().
parent
35d5e766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
device.c
dlls/wined3d/device.c
+21
-12
No files found.
dlls/wined3d/device.c
View file @
bd1ec9eb
...
...
@@ -4009,22 +4009,31 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetTexture(IWineD3DDevice *iface, DWORD
/*****
* Get Back Buffer
*****/
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetBackBuffer
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
UINT
BackBuffer
,
WINED3DBACKBUFFER_TYPE
Type
,
IWineD3DSurface
**
ppBackBuffer
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSwapChain
*
swap
C
hain
;
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetBackBuffer
(
IWineD3DDevice
*
iface
,
UINT
swapchain_idx
,
UINT
backbuffer_idx
,
WINED3DBACKBUFFER_TYPE
backbuffer_type
,
IWineD3DSurface
**
backbuffer
)
{
IWineD3DSwapChain
*
swap
c
hain
;
HRESULT
hr
;
TRACE
(
"(%p) : BackBuf %d Type %d SwapChain %d returning %p
\n
"
,
This
,
BackBuffer
,
Type
,
iSwapChain
,
*
ppBackBuffer
);
TRACE
(
"iface %p, swapchain_idx %u, backbuffer_idx %u, backbuffer_type %#x, backbuffer %p.
\n
"
,
iface
,
swapchain_idx
,
backbuffer_idx
,
backbuffer_type
,
backbuffer
);
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
&
swapChain
);
if
(
hr
==
WINED3D_OK
)
{
hr
=
IWineD3DSwapChain_GetBackBuffer
(
swapChain
,
BackBuffer
,
Type
,
ppBackBuffer
);
IWineD3DSwapChain_Release
(
swapChain
);
}
else
{
*
ppBackBuffer
=
NULL
;
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
swapchain_idx
,
&
swapchain
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get swapchain %u, hr %#x.
\n
"
,
swapchain_idx
,
hr
);
return
hr
;
}
return
hr
;
hr
=
IWineD3DSwapChain_GetBackBuffer
(
swapchain
,
backbuffer_idx
,
backbuffer_type
,
backbuffer
);
IWineD3DSwapChain_Release
(
swapchain
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get backbuffer %u, hr %#x.
\n
"
,
backbuffer_idx
,
hr
);
return
hr
;
}
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDeviceCaps
(
IWineD3DDevice
*
iface
,
WINED3DCAPS
*
pCaps
)
{
...
...
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