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
dcacd83a
Commit
dcacd83a
authored
Sep 12, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Make some functions hookable.
parent
f54d6c36
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
d3d9_main.c
dlls/d3d9/d3d9_main.c
+2
-2
device.c
dlls/d3d9/device.c
+5
-5
directx.c
dlls/d3d9/directx.c
+5
-5
swapchain.c
dlls/d3d9/swapchain.c
+3
-3
No files found.
dlls/d3d9/d3d9_main.c
View file @
dcacd83a
...
...
@@ -33,7 +33,7 @@ void WINAPI DebugSetMute(void) {
/* nothing to do */
}
IDirect3D9
*
WINAPI
Direct3DCreate9
(
UINT
SDKVersion
)
{
IDirect3D9
*
WINAPI
D
ECLSPEC_HOTPATCH
D
irect3DCreate9
(
UINT
SDKVersion
)
{
IDirect3D9Impl
*
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3D9Impl
));
object
->
lpVtbl
=
&
Direct3D9_Vtbl
;
...
...
@@ -53,7 +53,7 @@ IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion) {
return
(
IDirect3D9
*
)
object
;
}
HRESULT
WINAPI
Direct3DCreate9Ex
(
UINT
SDKVersion
,
IDirect3D9Ex
**
direct3d9ex
)
{
HRESULT
WINAPI
D
ECLSPEC_HOTPATCH
D
irect3DCreate9Ex
(
UINT
SDKVersion
,
IDirect3D9Ex
**
direct3d9ex
)
{
IDirect3D9
*
ret
;
IDirect3D9Impl
*
object
;
...
...
dlls/d3d9/device.c
View file @
dcacd83a
...
...
@@ -235,7 +235,7 @@ static ULONG WINAPI IDirect3DDevice9Impl_AddRef(LPDIRECT3DDEVICE9EX iface) {
return
ref
;
}
static
ULONG
WINAPI
IDirect3DDevice9Impl_Release
(
LPDIRECT3DDEVICE9EX
iface
)
{
static
ULONG
WINAPI
DECLSPEC_HOTPATCH
IDirect3DDevice9Impl_Release
(
LPDIRECT3DDEVICE9EX
iface
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
ULONG
ref
;
...
...
@@ -490,7 +490,7 @@ static HRESULT WINAPI reset_enum_callback(IWineD3DResource *resource, void *data
return
ret
;
}
static
HRESULT
WINAPI
IDirect3DDevice9Impl_Reset
(
LPDIRECT3DDEVICE9EX
iface
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
{
static
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3DDevice9Impl_Reset
(
LPDIRECT3DDEVICE9EX
iface
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
WINED3DPRESENT_PARAMETERS
localParameters
;
HRESULT
hr
;
...
...
@@ -568,7 +568,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_Reset(LPDIRECT3DDEVICE9EX iface, D3
return
hr
;
}
static
HRESULT
WINAPI
IDirect3DDevice9Impl_Present
(
LPDIRECT3DDEVICE9EX
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
static
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3DDevice9Impl_Present
(
LPDIRECT3DDEVICE9EX
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
HRESULT
hr
;
...
...
@@ -1288,7 +1288,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetClipPlane(LPDIRECT3DDEVICE9EX if
return
hr
;
}
static
HRESULT
WINAPI
IDirect3DDevice9Impl_SetRenderState
(
LPDIRECT3DDEVICE9EX
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
{
static
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3DDevice9Impl_SetRenderState
(
LPDIRECT3DDEVICE9EX
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
HRESULT
hr
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -1451,7 +1451,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetSamplerState(IDirect3DDevice9Ex *i
return
hr
;
}
static
HRESULT
WINAPI
IDirect3DDevice9Impl_SetSamplerState
(
LPDIRECT3DDEVICE9EX
iface
,
DWORD
Sampler
,
D3DSAMPLERSTATETYPE
Type
,
DWORD
Value
)
{
static
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3DDevice9Impl_SetSamplerState
(
LPDIRECT3DDEVICE9EX
iface
,
DWORD
Sampler
,
D3DSAMPLERSTATETYPE
Type
,
DWORD
Value
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
HRESULT
hr
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
dlls/d3d9/directx.c
View file @
dcacd83a
...
...
@@ -394,10 +394,10 @@ ULONG WINAPI D3D9CB_DestroySwapChain(IWineD3DSwapChain *pSwapChain) {
return
IDirect3DSwapChain9_Release
((
IDirect3DSwapChain9
*
)
swapChainParent
);
}
static
HRESULT
WINAPI
IDirect3D9Impl_CreateDevice
(
LPDIRECT3D9EX
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviourFlags
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DDevice9
**
ppReturnedDeviceInterface
)
{
static
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3D9Impl_CreateDevice
(
LPDIRECT3D9EX
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviourFlags
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DDevice9
**
ppReturnedDeviceInterface
)
{
IDirect3D9Impl
*
This
=
(
IDirect3D9Impl
*
)
iface
;
IDirect3DDevice9Impl
*
object
=
NULL
;
...
...
@@ -524,7 +524,7 @@ static HRESULT WINAPI IDirect3D9ExImpl_GetAdapterDisplayModeEx(IDirect3D9Ex *ifa
return
D3DERR_DRIVERINTERNALERROR
;
}
static
HRESULT
WINAPI
IDirect3D9ExImpl_CreateDeviceEx
(
IDirect3D9Ex
*
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviorFlags
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
D3DDISPLAYMODEEX
*
pFullscreenDisplayMode
,
struct
IDirect3DDevice9Ex
**
ppReturnedDeviceInterface
)
{
static
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3D9ExImpl_CreateDeviceEx
(
IDirect3D9Ex
*
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviorFlags
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
D3DDISPLAYMODEEX
*
pFullscreenDisplayMode
,
struct
IDirect3DDevice9Ex
**
ppReturnedDeviceInterface
)
{
IDirect3D9Impl
*
This
=
(
IDirect3D9Impl
*
)
iface
;
FIXME
(
"(%p)->(%d, %d, %p, 0x%08x, %p, %p, %p): Stub!
\n
"
,
This
,
Adapter
,
DeviceType
,
hFocusWindow
,
BehaviorFlags
,
pPresentationParameters
,
pFullscreenDisplayMode
,
ppReturnedDeviceInterface
);
*
ppReturnedDeviceInterface
=
NULL
;
...
...
dlls/d3d9/swapchain.c
View file @
dcacd83a
...
...
@@ -77,7 +77,7 @@ static ULONG WINAPI IDirect3DSwapChain9Impl_Release(LPDIRECT3DSWAPCHAIN9 iface)
}
/* IDirect3DSwapChain9 parts follow: */
static
HRESULT
WINAPI
IDirect3DSwapChain9Impl_Present
(
LPDIRECT3DSWAPCHAIN9
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
{
static
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3DSwapChain9Impl_Present
(
LPDIRECT3DSWAPCHAIN9
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
{
IDirect3DSwapChain9Impl
*
This
=
(
IDirect3DSwapChain9Impl
*
)
iface
;
HRESULT
hr
;
...
...
@@ -211,7 +211,7 @@ static const IDirect3DSwapChain9Vtbl Direct3DSwapChain9_Vtbl =
/* IDirect3DDevice9 IDirect3DSwapChain9 Methods follow: */
HRESULT
WINAPI
IDirect3DDevice9Impl_CreateAdditionalSwapChain
(
LPDIRECT3DDEVICE9EX
iface
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DSwapChain9
**
pSwapChain
)
{
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3DDevice9Impl_CreateAdditionalSwapChain
(
LPDIRECT3DDEVICE9EX
iface
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DSwapChain9
**
pSwapChain
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
IDirect3DSwapChain9Impl
*
object
;
HRESULT
hrc
=
D3D_OK
;
...
...
@@ -282,7 +282,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateAdditionalSwapChain(LPDIRECT3DDEVICE
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice9Impl_GetSwapChain
(
LPDIRECT3DDEVICE9EX
iface
,
UINT
iSwapChain
,
IDirect3DSwapChain9
**
pSwapChain
)
{
HRESULT
WINAPI
DECLSPEC_HOTPATCH
IDirect3DDevice9Impl_GetSwapChain
(
LPDIRECT3DDEVICE9EX
iface
,
UINT
iSwapChain
,
IDirect3DSwapChain9
**
pSwapChain
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
IWineD3DSwapChain
*
swapchain
=
NULL
;
...
...
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