mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 23:01:16 +00:00
Implement/match DeviceImpl::HandleActivate
This commit is contained in:
parent
7ed2ac9ccc
commit
4ff5891d7a
@ -49,14 +49,13 @@ Result DeviceImpl::SetDither(int dither)
|
|||||||
return ResultVal(m_data->SetDither(dither));
|
return ResultVal(m_data->SetDither(dither));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Probably wrong, not sure what's going on in this method.
|
|
||||||
// FUNCTION: LEGO1 0x100a2ce0
|
// FUNCTION: LEGO1 0x100a2ce0
|
||||||
void DeviceImpl::InitFromD3DDevice(Device*)
|
void DeviceImpl::HandleActivate(WORD wParam)
|
||||||
{
|
{
|
||||||
// Device argument is intentionally unused.
|
// Device argument is intentionally unused.
|
||||||
IDirect3DRMWinDevice* winDevice;
|
IDirect3DRMWinDevice* winDevice;
|
||||||
if (ResultVal(m_data->QueryInterface(IID_IDirect3DRMWinDevice, (LPVOID*) &winDevice))) {
|
if (ResultVal(m_data->QueryInterface(IID_IDirect3DRMWinDevice, (LPVOID*) &winDevice))) {
|
||||||
m_data->InitFromD3D((LPDIRECT3D) &winDevice, (LPDIRECT3DDEVICE) m_data);
|
winDevice->HandleActivate(wParam);
|
||||||
winDevice->Release();
|
winDevice->Release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,7 +145,7 @@ class DeviceImpl : public Device {
|
|||||||
|
|
||||||
// vtable+0x20
|
// vtable+0x20
|
||||||
Result Update() override;
|
Result Update() override;
|
||||||
void InitFromD3DDevice(Device*) override;
|
void HandleActivate(WORD) override;
|
||||||
void InitFromWindowsDevice(Device*) override;
|
void InitFromWindowsDevice(Device*) override;
|
||||||
|
|
||||||
IDirect3DRMDevice2* ImplementationData() const { return m_data; }
|
IDirect3DRMDevice2* ImplementationData() const { return m_data; }
|
||||||
|
|||||||
@ -171,7 +171,7 @@ class Device : public Object {
|
|||||||
|
|
||||||
// vtable+0x20
|
// vtable+0x20
|
||||||
virtual Result Update() = 0;
|
virtual Result Update() = 0;
|
||||||
virtual void InitFromD3DDevice(Device*) = 0;
|
virtual void HandleActivate(WORD) = 0;
|
||||||
virtual void InitFromWindowsDevice(Device*) = 0;
|
virtual void InitFromWindowsDevice(Device*) = 0;
|
||||||
|
|
||||||
// SYNTHETIC: LEGO1 0x100a2350
|
// SYNTHETIC: LEGO1 0x100a2350
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user