mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Rename vars
This commit is contained in:
parent
f8ddb0d289
commit
48772b1a77
@ -15,7 +15,7 @@ MxDirect3D::MxDirect3D()
|
|||||||
this->m_pDirect3d = NULL;
|
this->m_pDirect3d = NULL;
|
||||||
this->m_pDirect3dDevice = NULL;
|
this->m_pDirect3dDevice = NULL;
|
||||||
this->m_unk0x88c = NULL;
|
this->m_unk0x88c = NULL;
|
||||||
this->m_pAssignedDevice = NULL;
|
this->m_assignedDevice = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1009b140
|
// FUNCTION: LEGO1 0x1009b140
|
||||||
@ -73,9 +73,9 @@ void MxDirect3D::Destroy()
|
|||||||
this->m_pDirect3d = NULL;
|
this->m_pDirect3d = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->m_pAssignedDevice) {
|
if (this->m_assignedDevice) {
|
||||||
delete m_pAssignedDevice;
|
delete m_assignedDevice;
|
||||||
this->m_pAssignedDevice = NULL;
|
this->m_assignedDevice = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This should get deleted by MxDirectDraw::Destroy
|
// This should get deleted by MxDirectDraw::Destroy
|
||||||
@ -118,7 +118,7 @@ BOOL MxDirect3D::CreateIDirect3D()
|
|||||||
BOOL MxDirect3D::D3DSetMode()
|
BOOL MxDirect3D::D3DSetMode()
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
// if (m_pAssignedDevice)
|
// if (m_assignedDevice)
|
||||||
Error("This device cannot support the current display mode", 0);
|
Error("This device cannot support the current display mode", 0);
|
||||||
OutputDebugString("MxDirect3D::D3DSetMode() front lock failed\n");
|
OutputDebugString("MxDirect3D::D3DSetMode() front lock failed\n");
|
||||||
OutputDebugString("MxDirect3D::D3DSetMode() back lock failed\n");
|
OutputDebugString("MxDirect3D::D3DSetMode() back lock failed\n");
|
||||||
@ -128,9 +128,9 @@ BOOL MxDirect3D::D3DSetMode()
|
|||||||
// FUNCTION: LEGO1 0x1009b5f0
|
// FUNCTION: LEGO1 0x1009b5f0
|
||||||
BOOL MxDirect3D::SetDevice(MxDeviceEnumerate& p_deviceEnumerator, MxDriver* p_driver, MxDevice* p_device)
|
BOOL MxDirect3D::SetDevice(MxDeviceEnumerate& p_deviceEnumerator, MxDriver* p_driver, MxDevice* p_device)
|
||||||
{
|
{
|
||||||
if (m_pAssignedDevice) {
|
if (m_assignedDevice) {
|
||||||
delete m_pAssignedDevice;
|
delete m_assignedDevice;
|
||||||
m_pAssignedDevice = NULL;
|
m_assignedDevice = NULL;
|
||||||
m_pCurrentDeviceModesList = NULL;
|
m_pCurrentDeviceModesList = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ BOOL MxDirect3D::SetDevice(MxDeviceEnumerate& p_deviceEnumerator, MxDriver* p_dr
|
|||||||
desc = &device.m_HELDesc;
|
desc = &device.m_HELDesc;
|
||||||
|
|
||||||
memcpy(&assignedDevice->m_desc, desc, sizeof(assignedDevice->m_desc));
|
memcpy(&assignedDevice->m_desc, desc, sizeof(assignedDevice->m_desc));
|
||||||
m_pAssignedDevice = assignedDevice;
|
m_assignedDevice = assignedDevice;
|
||||||
m_pCurrentDeviceModesList = assignedDevice->m_deviceInfo;
|
m_pCurrentDeviceModesList = assignedDevice->m_deviceInfo;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -199,7 +199,7 @@ BOOL MxDirect3D::SetDevice(MxDeviceEnumerate& p_deviceEnumerator, MxDriver* p_dr
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_pAssignedDevice) {
|
if (!m_assignedDevice) {
|
||||||
delete assignedDevice;
|
delete assignedDevice;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,12 +59,12 @@ class MxDirect3D : public MxDirectDraw {
|
|||||||
BOOL D3DSetMode();
|
BOOL D3DSetMode();
|
||||||
BOOL SetDevice(MxDeviceEnumerate& p_deviceEnumerator, MxDriver* p_driver, MxDevice* p_device);
|
BOOL SetDevice(MxDeviceEnumerate& p_deviceEnumerator, MxDriver* p_driver, MxDevice* p_device);
|
||||||
|
|
||||||
inline MxAssignedDevice* GetDeviceModeFinder() { return this->m_pAssignedDevice; };
|
inline MxAssignedDevice* GetDeviceModeFinder() { return this->m_assignedDevice; };
|
||||||
inline IDirect3D* GetDirect3D() { return this->m_pDirect3d; }
|
inline IDirect3D* GetDirect3D() { return this->m_pDirect3d; }
|
||||||
inline IDirect3DDevice* GetDirect3DDevice() { return this->m_pDirect3dDevice; }
|
inline IDirect3DDevice* GetDirect3DDevice() { return this->m_pDirect3dDevice; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MxAssignedDevice* m_pAssignedDevice; // 0x880
|
MxAssignedDevice* m_assignedDevice; // 0x880
|
||||||
IDirect3D* m_pDirect3d; // 0x884
|
IDirect3D* m_pDirect3d; // 0x884
|
||||||
IDirect3DDevice* m_pDirect3dDevice; // 0x888
|
IDirect3DDevice* m_pDirect3dDevice; // 0x888
|
||||||
undefined4 m_unk0x88c; // 0x88c
|
undefined4 m_unk0x88c; // 0x88c
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user