mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +00:00
Implemented IDirect3DDevice9::GetCreationParameters()
svn path=/trunk/; revision=33349
This commit is contained in:
parent
95bc4a2671
commit
1e922dc43f
1 changed files with 35 additions and 2 deletions
|
@ -239,10 +239,43 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetDisplayMode(LPDIRECT3DDEVICE9 ifac
|
|||
return D3D_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI IDirect3DDevice9Impl_GetCreationParameters(LPDIRECT3DDEVICE9 iface, D3DDEVICE_CREATION_PARAMETERS *pParameters)
|
||||
/*++
|
||||
* @name IDirect3DDevice9::GetCreationParameters
|
||||
* @implemented
|
||||
*
|
||||
* The function IDirect3DDevice9Impl_GetCreationParameters fills the pParameters argument with the
|
||||
* parameters the device was created with.
|
||||
*
|
||||
* @param LPDIRECT3D iface
|
||||
* Pointer to the IDirect3D9 object returned from Direct3DCreate9()
|
||||
*
|
||||
* @param D3DDEVICE_CREATION_PARAMETERS* pParameters
|
||||
* Pointer to a D3DDEVICE_CREATION_PARAMETERS structure to be filled with the creation parameter
|
||||
* information for this device.
|
||||
*
|
||||
* @return HRESULT
|
||||
* If the method successfully fills the pParameters structure, the return value is D3D_OK.
|
||||
* If pParameters is a bad pointer, the return value will be D3DERR_INVALIDCALL.
|
||||
*
|
||||
*/
|
||||
static HRESULT WINAPI IDirect3DDevice9Impl_GetCreationParameters(LPDIRECT3DDEVICE9 iface, D3DDEVICE_CREATION_PARAMETERS* pParameters)
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
LPDIRECT3DDEVICE9_INT This = impl_from_IDirect3DDevice9(iface);
|
||||
LOCK_D3DDEVICE9();
|
||||
|
||||
if (IsBadWritePtr(pParameters, sizeof(D3DDEVICE_CREATION_PARAMETERS)))
|
||||
{
|
||||
DPRINT1("Invalid pParameters parameter specified");
|
||||
UNLOCK_D3DDEVICE9();
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
|
||||
pParameters->AdapterOrdinal = This->AdapterIndexInGroup[0];
|
||||
pParameters->DeviceType = This->DeviceType;
|
||||
pParameters->hFocusWindow = This->hWnd;
|
||||
pParameters->BehaviorFlags = This->BehaviourFlags;
|
||||
|
||||
UNLOCK_D3DDEVICE9();
|
||||
return D3D_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue