Temporary workaround

This commit is contained in:
Christian Semmler 2024-02-23 20:33:57 -05:00
parent a725c91a8e
commit d6103d2ec2
2 changed files with 8 additions and 6 deletions

View File

@ -27,11 +27,12 @@ typedef struct {
typedef struct : FLIC_CHUNK { typedef struct : FLIC_CHUNK {
WORD frames; /* Number of frames in first segment */ // 0x06 WORD frames; /* Number of frames in first segment */ // 0x06
short width; /* FLIC width in pixels */ // 0x08 // TODO: See signed issue in MxFlcPresenter::CreateBitmap()
short height; /* FLIC height in pixels */ // 0x0a short width; /* FLIC width in pixels */ // 0x08
WORD depth; /* Bits per pixel (usually 8) */ // 0x0c short height; /* FLIC height in pixels */ // 0x0a
WORD flags; /* Set to zero or to three */ // 0x0e WORD depth; /* Bits per pixel (usually 8) */ // 0x0c
DWORD speed; /* Delay between frames */ // 0x10 WORD flags; /* Set to zero or to three */ // 0x0e
DWORD speed; /* Delay between frames */ // 0x10
} FLIC_HEADER; } FLIC_HEADER;
#pragma pack(pop) #pragma pack(pop)

View File

@ -40,7 +40,8 @@ void MxFlcPresenter::CreateBitmap()
} }
m_bitmap = new MxBitmap; m_bitmap = new MxBitmap;
m_bitmap->SetSize(m_flcHeader->width, m_flcHeader->height, NULL, FALSE); // TODO: Unlikely that width/height are signed shorts
m_bitmap->SetSize((MxU16) m_flcHeader->width, (MxU16) m_flcHeader->height, NULL, FALSE);
} }
// FUNCTION: LEGO1 0x100b3570 // FUNCTION: LEGO1 0x100b3570