mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Rename variable
This commit is contained in:
parent
931503f3da
commit
60493fd9a8
@ -46,7 +46,7 @@ void MxFlcPresenter::CreateBitmap()
|
|||||||
void MxFlcPresenter::LoadFrame(MxStreamChunk* p_chunk)
|
void MxFlcPresenter::LoadFrame(MxStreamChunk* p_chunk)
|
||||||
{
|
{
|
||||||
MxU32* data = (MxU32*) p_chunk->GetData();
|
MxU32* data = (MxU32*) p_chunk->GetData();
|
||||||
MxS32 length = *data;
|
MxS32 rectCount = *data;
|
||||||
data++;
|
data++;
|
||||||
|
|
||||||
MxRect32* rects = (MxRect32*) data;
|
MxRect32* rects = (MxRect32*) data;
|
||||||
@ -56,14 +56,14 @@ void MxFlcPresenter::LoadFrame(MxStreamChunk* p_chunk)
|
|||||||
&m_bitmap->GetBitmapInfo()->m_bmiHeader,
|
&m_bitmap->GetBitmapInfo()->m_bmiHeader,
|
||||||
m_bitmap->GetBitmapData(),
|
m_bitmap->GetBitmapData(),
|
||||||
m_flcHeader,
|
m_flcHeader,
|
||||||
&rects[length],
|
&rects[rectCount],
|
||||||
&decodedColorMap
|
&decodedColorMap
|
||||||
);
|
);
|
||||||
|
|
||||||
if (((MxDSMediaAction*) m_action)->GetPaletteManagement() && decodedColorMap)
|
if (((MxDSMediaAction*) m_action)->GetPaletteManagement() && decodedColorMap)
|
||||||
RealizePalette();
|
RealizePalette();
|
||||||
|
|
||||||
for (MxS32 i = 0; i < length; i++) {
|
for (MxS32 i = 0; i < rectCount; i++) {
|
||||||
MxRect32 rect(rects[i]);
|
MxRect32 rect(rects[i]);
|
||||||
rect.AddPoint(m_location);
|
rect.AddPoint(m_location);
|
||||||
MVideoManager()->InvalidateRect(rect);
|
MVideoManager()->InvalidateRect(rect);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user