mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 15:48:09 -05:00
Match MxFlcPresenter::LoadFrame to 100%
This commit is contained in:
parent
d5658efe02
commit
8007c5e483
1 changed files with 7 additions and 5 deletions
|
@ -45,18 +45,20 @@ void MxFlcPresenter::CreateBitmap()
|
|||
// FUNCTION: LEGO1 0x100b3570
|
||||
void MxFlcPresenter::LoadFrame(MxStreamChunk* p_chunk)
|
||||
{
|
||||
MxU32* data = (MxU32*) p_chunk->GetData();
|
||||
MxS32 rectCount = *data;
|
||||
data++;
|
||||
MxU8* data = p_chunk->GetData();
|
||||
|
||||
MxS32 rectCount = *(MxU32*) data;
|
||||
data += sizeof(MxU32);
|
||||
|
||||
MxRect32* rects = (MxRect32*) data;
|
||||
MxBool decodedColorMap;
|
||||
data += rectCount * sizeof(MxRect32);
|
||||
|
||||
MxBool decodedColorMap;
|
||||
DecodeFLCFrame(
|
||||
&m_bitmap->GetBitmapInfo()->m_bmiHeader,
|
||||
m_bitmap->GetBitmapData(),
|
||||
m_flcHeader,
|
||||
&rects[rectCount],
|
||||
data,
|
||||
&decodedColorMap
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue