Match MxFlcPresenter::LoadFrame to 100%

This commit is contained in:
Christian Semmler 2024-01-18 21:23:07 -05:00
parent d5658efe02
commit 8007c5e483
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C

View file

@ -45,18 +45,20 @@ void MxFlcPresenter::CreateBitmap()
// FUNCTION: LEGO1 0x100b3570 // FUNCTION: LEGO1 0x100b3570
void MxFlcPresenter::LoadFrame(MxStreamChunk* p_chunk) void MxFlcPresenter::LoadFrame(MxStreamChunk* p_chunk)
{ {
MxU32* data = (MxU32*) p_chunk->GetData(); MxU8* data = p_chunk->GetData();
MxS32 rectCount = *data;
data++; MxS32 rectCount = *(MxU32*) data;
data += sizeof(MxU32);
MxRect32* rects = (MxRect32*) data; MxRect32* rects = (MxRect32*) data;
MxBool decodedColorMap; data += rectCount * sizeof(MxRect32);
MxBool decodedColorMap;
DecodeFLCFrame( DecodeFLCFrame(
&m_bitmap->GetBitmapInfo()->m_bmiHeader, &m_bitmap->GetBitmapInfo()->m_bmiHeader,
m_bitmap->GetBitmapData(), m_bitmap->GetBitmapData(),
m_flcHeader, m_flcHeader,
&rects[rectCount], data,
&decodedColorMap &decodedColorMap
); );