mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -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
|
// 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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue