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,6 +27,7 @@ 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
// TODO: See signed issue in MxFlcPresenter::CreateBitmap()
short width; /* FLIC width in pixels */ // 0x08 short width; /* FLIC width in pixels */ // 0x08
short height; /* FLIC height in pixels */ // 0x0a short height; /* FLIC height in pixels */ // 0x0a
WORD depth; /* Bits per pixel (usually 8) */ // 0x0c WORD depth; /* Bits per pixel (usually 8) */ // 0x0c

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