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
926dfc5c
Commit
926dfc5c
authored
Apr 12, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Merge the IWineD3DSwapChain::SetDestWindowOverride() implementations.
parent
3068ae9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
27 deletions
+19
-27
swapchain.c
dlls/wined3d/swapchain.c
+19
-27
No files found.
dlls/wined3d/swapchain.c
View file @
926dfc5c
...
...
@@ -135,6 +135,22 @@ static void * WINAPI IWineD3DBaseSwapChainImpl_GetParent(IWineD3DSwapChain *ifac
return
((
IWineD3DSwapChainImpl
*
)
iface
)
->
parent
;
}
static
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_SetDestWindowOverride
(
IWineD3DSwapChain
*
iface
,
HWND
window
)
{
IWineD3DSwapChainImpl
*
swapchain
=
(
IWineD3DSwapChainImpl
*
)
iface
;
if
(
!
window
)
window
=
swapchain
->
device_window
;
if
(
window
==
swapchain
->
win_handle
)
return
WINED3D_OK
;
TRACE
(
"Setting swapchain %p window from %p to %p.
\n
"
,
swapchain
,
swapchain
->
win_handle
,
window
);
swapchain
->
win_handle
=
window
;
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_GetFrontBufferData
(
IWineD3DSwapChain
*
iface
,
IWineD3DSurface
*
dst_surface
)
{
...
...
@@ -410,7 +426,7 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface,
RECT
src_rect
,
dst_rect
;
BOOL
render_to_fbo
;
IWineD3D
SwapChain
_SetDestWindowOverride
(
iface
,
hDestWindowOverride
);
IWineD3D
BaseSwapChainImpl
_SetDestWindowOverride
(
iface
,
hDestWindowOverride
);
context
=
context_acquire
(
This
->
device
,
This
->
back_buffers
[
0
]);
if
(
!
context
->
valid
)
...
...
@@ -637,19 +653,6 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface,
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_SetDestWindowOverride
(
IWineD3DSwapChain
*
iface
,
HWND
window
)
{
IWineD3DSwapChainImpl
*
swapchain
=
(
IWineD3DSwapChainImpl
*
)
iface
;
if
(
!
window
)
window
=
swapchain
->
device_window
;
if
(
window
==
swapchain
->
win_handle
)
return
WINED3D_OK
;
TRACE
(
"Setting swapchain %p window from %p to %p
\n
"
,
swapchain
,
swapchain
->
win_handle
,
window
);
swapchain
->
win_handle
=
window
;
return
WINED3D_OK
;
}
static
const
IWineD3DSwapChainVtbl
IWineD3DSwapChain_Vtbl
=
{
/* IUnknown */
...
...
@@ -660,7 +663,7 @@ static const IWineD3DSwapChainVtbl IWineD3DSwapChain_Vtbl =
IWineD3DBaseSwapChainImpl_GetParent
,
IWineD3DBaseSwapChainImpl_GetDevice
,
IWineD3DSwapChainImpl_Present
,
IWineD3DSwapChainImpl_SetDestWindowOverride
,
IWineD3D
Base
SwapChainImpl_SetDestWindowOverride
,
IWineD3DBaseSwapChainImpl_GetFrontBufferData
,
IWineD3DBaseSwapChainImpl_GetBackBuffer
,
IWineD3DBaseSwapChainImpl_GetRasterStatus
,
...
...
@@ -747,17 +750,6 @@ void x11_copy_to_screen(IWineD3DSwapChainImpl *swapchain, const RECT *rect)
ReleaseDC
(
window
,
dst_dc
);
}
static
HRESULT
WINAPI
IWineGDISwapChainImpl_SetDestWindowOverride
(
IWineD3DSwapChain
*
iface
,
HWND
window
)
{
IWineD3DSwapChainImpl
*
swapchain
=
(
IWineD3DSwapChainImpl
*
)
iface
;
TRACE
(
"iface %p, window %p.
\n
"
,
iface
,
window
);
swapchain
->
win_handle
=
window
;
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineGDISwapChainImpl_Present
(
IWineD3DSwapChain
*
iface
,
const
RECT
*
pSourceRect
,
const
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
const
RGNDATA
*
pDirtyRegion
,
DWORD
flags
)
...
...
@@ -848,7 +840,7 @@ static const IWineD3DSwapChainVtbl IWineGDISwapChain_Vtbl =
IWineD3DBaseSwapChainImpl_GetParent
,
IWineD3DBaseSwapChainImpl_GetDevice
,
IWineGDISwapChainImpl_Present
,
IWine
GDI
SwapChainImpl_SetDestWindowOverride
,
IWine
D3DBase
SwapChainImpl_SetDestWindowOverride
,
IWineD3DBaseSwapChainImpl_GetFrontBufferData
,
IWineD3DBaseSwapChainImpl_GetBackBuffer
,
IWineD3DBaseSwapChainImpl_GetRasterStatus
,
...
...
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