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
434a23d9
Commit
434a23d9
authored
Nov 18, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Move D3D9CB_DestroySwapChain() to device.c.
parent
b9243b72
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
14 deletions
+11
-14
d3d9_private.h
dlls/d3d9/d3d9_private.h
+0
-4
device.c
dlls/d3d9/device.c
+11
-0
directx.c
dlls/d3d9/directx.c
+0
-10
No files found.
dlls/d3d9/d3d9_private.h
View file @
434a23d9
...
...
@@ -563,8 +563,4 @@ typedef struct IDirect3DQuery9Impl {
LPDIRECT3DDEVICE9EX
parentDevice
;
}
IDirect3DQuery9Impl
;
/* Callbacks */
extern
ULONG
WINAPI
D3D9CB_DestroySwapChain
(
IWineD3DSwapChain
*
pSwapChain
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_D3D9_PRIVATE_H */
dlls/d3d9/device.c
View file @
434a23d9
...
...
@@ -181,6 +181,17 @@ static UINT vertex_count_from_primitive_count(D3DPRIMITIVETYPE primitive_type, U
}
}
static
ULONG
WINAPI
D3D9CB_DestroySwapChain
(
IWineD3DSwapChain
*
swapchain
)
{
IDirect3DSwapChain9Impl
*
parent
;
TRACE
(
"swapchain %p.
\n
"
,
swapchain
);
IWineD3DSwapChain_GetParent
(
swapchain
,
(
IUnknown
**
)
&
parent
);
parent
->
isImplicit
=
FALSE
;
return
IDirect3DSwapChain9_Release
((
IDirect3DSwapChain9
*
)
parent
);
}
/* IDirect3D IUnknown parts follow: */
static
HRESULT
WINAPI
IDirect3DDevice9Impl_QueryInterface
(
LPDIRECT3DDEVICE9EX
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
...
...
dlls/d3d9/directx.c
View file @
434a23d9
...
...
@@ -407,16 +407,6 @@ static HMONITOR WINAPI IDirect3D9Impl_GetAdapterMonitor(LPDIRECT3D9EX iface, UIN
return
ret
;
}
ULONG
WINAPI
D3D9CB_DestroySwapChain
(
IWineD3DSwapChain
*
pSwapChain
)
{
IDirect3DSwapChain9Impl
*
swapChainParent
;
TRACE
(
"(%p) call back
\n
"
,
pSwapChain
);
IWineD3DSwapChain_GetParent
(
pSwapChain
,(
IUnknown
**
)
&
swapChainParent
);
swapChainParent
->
isImplicit
=
FALSE
;
/* Swap chain had refcount of 0 GetParent addrefed to 1, so 1 Release is enough */
return
IDirect3DSwapChain9_Release
((
IDirect3DSwapChain9
*
)
swapChainParent
);
}
static
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3D9Impl_CreateDevice
(
IDirect3D9Ex
*
iface
,
UINT
adapter
,
D3DDEVTYPE
device_type
,
HWND
focus_window
,
DWORD
flags
,
D3DPRESENT_PARAMETERS
*
parameters
,
IDirect3DDevice9
**
device
)
...
...
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