mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-15 04:31:16 +00:00
Clear unknown in MxVideoManager (#1721)
This commit is contained in:
parent
197ae3ee10
commit
d26acdfae9
@ -58,7 +58,7 @@ class MxVideoManager : public MxPresentationManager {
|
||||
LPDIRECT3D2 m_pDirect3D; // 0x54
|
||||
MxDisplaySurface* m_displaySurface; // 0x58
|
||||
MxRegion* m_region; // 0x5c
|
||||
MxBool m_unk0x60; // 0x60
|
||||
MxBool m_created; // 0x60
|
||||
};
|
||||
|
||||
#endif // MXVIDEOMANAGER_H
|
||||
|
||||
@ -41,7 +41,7 @@ MxResult MxVideoManager::Init()
|
||||
m_displaySurface = NULL;
|
||||
m_region = NULL;
|
||||
m_videoParam.SetPalette(NULL);
|
||||
m_unk0x60 = FALSE;
|
||||
m_created = FALSE;
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ void MxVideoManager::Destroy(MxBool p_fromDestructor)
|
||||
delete m_videoParam.GetPalette();
|
||||
}
|
||||
|
||||
if (m_unk0x60) {
|
||||
if (m_created) {
|
||||
if (m_pDirectDraw) {
|
||||
m_pDirectDraw->Release();
|
||||
}
|
||||
@ -152,7 +152,7 @@ MxResult MxVideoManager::VTable0x28(
|
||||
MxBool locked = FALSE;
|
||||
MxResult status = FAILURE;
|
||||
|
||||
m_unk0x60 = FALSE;
|
||||
m_created = FALSE;
|
||||
|
||||
if (MxPresentationManager::Create() != SUCCESS) {
|
||||
goto done;
|
||||
@ -226,7 +226,7 @@ MxResult MxVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyMS,
|
||||
MxBool locked = FALSE;
|
||||
MxResult status = FAILURE;
|
||||
|
||||
m_unk0x60 = TRUE;
|
||||
m_created = TRUE;
|
||||
|
||||
if (MxPresentationManager::Create() != SUCCESS) {
|
||||
goto done;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user