2023-06-24 13:09:46 -04:00
|
|
|
#include "mxvideomanager.h"
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100be1f0
|
|
|
|
MxVideoManager::MxVideoManager()
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100be320
|
|
|
|
int MxVideoManager::Init()
|
|
|
|
{
|
|
|
|
this->m_unk50 = 0;
|
|
|
|
this->m_unk54 = NULL;
|
|
|
|
this->m_unk58 = NULL;
|
|
|
|
this->m_unk5c = 0;
|
|
|
|
this->m_videoParam.SetPalette(NULL);
|
2023-06-27 22:04:07 -04:00
|
|
|
this->m_unk60 = FALSE;
|
2023-06-24 13:09:46 -04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100bebe0
|
|
|
|
long MxVideoManager::RealizePalette(MxPalette *p_palette)
|
|
|
|
{
|
|
|
|
PALETTEENTRY paletteEntries[256];
|
|
|
|
|
|
|
|
this->m_criticalSection.Enter();
|
|
|
|
|
|
|
|
if (p_palette && this->m_videoParam.GetPalette())
|
|
|
|
{
|
|
|
|
p_palette->GetEntries(paletteEntries);
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
this->m_criticalSection.Leave();
|
|
|
|
return 0;
|
2023-06-27 22:04:07 -04:00
|
|
|
}
|