lego1: match MxVideoManager::RealizePalette (#92)

* Match MxVideoManager::RealizePalette

* Rename class

* Name some functions
This commit is contained in:
Christian Semmler
2023-07-21 21:28:13 -04:00
committed by GitHub
parent 9fa08b1017
commit fa5417f58a
3 changed files with 40 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ int MxVideoManager::Init()
{
this->m_pDirectDraw = NULL;
this->m_unk54 = NULL;
this->m_unk58 = NULL;
this->m_displaySurface = NULL;
this->m_unk5c = 0;
this->m_videoParam.SetPalette(NULL);
this->m_unk60 = FALSE;
@@ -45,10 +45,10 @@ MxLong MxVideoManager::RealizePalette(MxPalette *p_palette)
this->m_criticalSection.Enter();
if (p_palette && this->m_videoParam.GetPalette())
{
if (p_palette && this->m_videoParam.GetPalette()) {
p_palette->GetEntries(paletteEntries);
// TODO
this->m_videoParam.GetPalette()->SetEntries(paletteEntries);
this->m_displaySurface->SetPalette(this->m_videoParam.GetPalette());
}
this->m_criticalSection.Leave();