MxFlcPresenter: vtable70 (#291)

* MxFlcPresenter: vtable70

* Fix function

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Joshua Peisach 2023-11-19 07:28:06 -05:00 committed by GitHub
parent 0bb3ea6a03
commit 0b0a9a6d6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -1,6 +1,10 @@
#include "mxflcpresenter.h"
#include "decomp.h"
#include "mxbitmap.h"
#include "mxomni.h"
#include "mxpalette.h"
#include "mxvideomanager.h"
DECOMP_SIZE_ASSERT(MxFlcPresenter, 0x68);
@ -19,3 +23,13 @@ MxFlcPresenter::~MxFlcPresenter()
delete this->m_unk64;
}
}
// OFFSET: LEGO1 0x100b3620
void MxFlcPresenter::VTable0x70()
{
MxPalette* pal = m_bitmap->CreatePalette();
MVideoManager()->RealizePalette(pal);
if (pal)
delete pal;
}

View file

@ -24,6 +24,8 @@ class MxFlcPresenter : public MxVideoPresenter {
return !strcmp(name, MxFlcPresenter::ClassName()) || MxVideoPresenter::IsA(name);
}
virtual void VTable0x70() override; // vtable+0x70
undefined4* m_unk64;
};