mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
Changed struct in IDirect3DDevice9::GetAvailableTextureMem() based on feedback from GreatLord
svn path=/trunk/; revision=33303
This commit is contained in:
parent
cd692f690e
commit
6e103fd392
|
@ -88,13 +88,13 @@ static HRESULT WINAPI IDirect3DDevice9Impl_TestCooperativeLevel(LPDIRECT3DDEVICE
|
|||
static UINT WINAPI IDirect3DDevice9Impl_GetAvailableTextureMem(LPDIRECT3DDEVICE9 iface)
|
||||
{
|
||||
UINT AvailableTextureMemory = 0;
|
||||
DD_GETAVAILDRIVERMEMORYDATA ddGetAvailDriverMemoryData;
|
||||
DDHAL_GETAVAILDRIVERMEMORYDATA ddGetAvailDriverMemoryData;
|
||||
|
||||
LPDIRECT3DDEVICE9_INT This = impl_from_IDirect3DDevice9(iface);
|
||||
LOCK_D3DDEVICE9();
|
||||
|
||||
memset(&ddGetAvailDriverMemoryData, 0, sizeof(ddGetAvailDriverMemoryData));
|
||||
ddGetAvailDriverMemoryData.lpDD = (PDD_DIRECTDRAW_GLOBAL)&This->DeviceData[0].pUnknown6BC->hDD;
|
||||
ddGetAvailDriverMemoryData.lpDD = (LPDDRAWI_DIRECTDRAW_GBL)&This->DeviceData[0].pUnknown6BC->hDD;
|
||||
|
||||
if (DDHAL_DRIVER_HANDLED == (*This->DeviceData[0].D3D9Callbacks.DdGetAvailDriverMemory)(&ddGetAvailDriverMemoryData))
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include <windows.h>
|
||||
#include <ddraw.h>
|
||||
#include <ddrawint.h>
|
||||
#include <ddrawi.h>
|
||||
|
||||
#define D3D9_INT_MAX_NUM_ADAPTERS 12
|
||||
|
||||
|
@ -108,7 +108,7 @@ typedef struct _tagD3D9_CALLBACKS
|
|||
/* 0x0044 */ DWORD DdFlip;
|
||||
/* 0x0048 */ DWORD DdGetBltStatus;
|
||||
/* 0x004c */ DWORD DdGetFlipStatus;
|
||||
/* 0x0050 */ PDD_GETAVAILDRIVERMEMORY DdGetAvailDriverMemory;
|
||||
/* 0x0050 */ LPDDHAL_GETAVAILDRIVERMEMORY DdGetAvailDriverMemory;
|
||||
/* 0x0054 */ DWORD unknown0115;
|
||||
/* 0x0058 */ DWORD DdSetMode;
|
||||
/* 0x005c */ DWORD DdSetExclusiveMode;
|
||||
|
|
Loading…
Reference in a new issue