mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 07:37:59 -05:00
Match LegoVideoManager::Destroy (#918)
This commit is contained in:
parent
939c09139f
commit
0b2d4914ee
2 changed files with 22 additions and 5 deletions
|
@ -88,7 +88,7 @@ class LegoVideoManager : public MxVideoManager {
|
||||||
MxS32 m_cursorY; // 0x510
|
MxS32 m_cursorY; // 0x510
|
||||||
LPDIRECTDRAWSURFACE m_cursorSurface; // 0x514
|
LPDIRECTDRAWSURFACE m_cursorSurface; // 0x514
|
||||||
RECT m_cursorRect; // 0x518
|
RECT m_cursorRect; // 0x518
|
||||||
undefined4 m_unk0x528; // 0x528
|
LPDIRECTDRAWSURFACE m_unk0x528; // 0x528
|
||||||
MxBool m_drawFPS; // 0x52c
|
MxBool m_drawFPS; // 0x52c
|
||||||
RECT m_fpsRect; // 0x530
|
RECT m_fpsRect; // 0x530
|
||||||
HFONT m_arialFont; // 0x540
|
HFONT m_arialFont; // 0x540
|
||||||
|
|
|
@ -43,7 +43,7 @@ LegoVideoManager::LegoVideoManager()
|
||||||
m_cursorSurface = NULL;
|
m_cursorSurface = NULL;
|
||||||
m_fullScreenMovie = FALSE;
|
m_fullScreenMovie = FALSE;
|
||||||
m_drawFPS = FALSE;
|
m_drawFPS = FALSE;
|
||||||
m_unk0x528 = 0;
|
m_unk0x528 = NULL;
|
||||||
m_arialFont = NULL;
|
m_arialFont = NULL;
|
||||||
m_unk0xe5 = FALSE;
|
m_unk0xe5 = FALSE;
|
||||||
m_unk0x554 = FALSE;
|
m_unk0x554 = FALSE;
|
||||||
|
@ -220,17 +220,34 @@ MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyM
|
||||||
// FUNCTION: LEGO1 0x1007b5e0
|
// FUNCTION: LEGO1 0x1007b5e0
|
||||||
void LegoVideoManager::Destroy()
|
void LegoVideoManager::Destroy()
|
||||||
{
|
{
|
||||||
// todo: delete m_unk0x512
|
if (m_cursorSurface != NULL) {
|
||||||
// todo: delete m_unk0x258
|
m_cursorSurface->Release();
|
||||||
|
m_cursorSurface = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (m_unk0x528 != NULL) {
|
||||||
|
m_unk0x528->Release();
|
||||||
|
m_unk0x528 = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_arialFont != NULL) {
|
if (m_arialFont != NULL) {
|
||||||
DeleteObject(m_arialFont);
|
DeleteObject(m_arialFont);
|
||||||
m_arialFont = NULL;
|
m_arialFont = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete m_unk0x64; //TODO: delete d3drm
|
delete m_renderer;
|
||||||
|
|
||||||
|
if (m_viewROI != NULL) {
|
||||||
|
if (m_3dManager != NULL) {
|
||||||
|
m_3dManager->Remove(*m_viewROI);
|
||||||
|
}
|
||||||
|
|
||||||
|
delete m_viewROI;
|
||||||
|
}
|
||||||
|
|
||||||
delete m_3dManager;
|
delete m_3dManager;
|
||||||
MxVideoManager::Destroy();
|
MxVideoManager::Destroy();
|
||||||
|
delete m_phonemeRefList;
|
||||||
delete m_stopWatch;
|
delete m_stopWatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue