mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-27 02:14:18 +00:00
Implement/match LegoPhonemePresenter::LoadFrame & PutFrame (#812)
* Implement/match LegoPhonemePresenter::LoadFrame & PutFrame * add beta10 annotations
This commit is contained in:
committed by
GitHub
parent
d639eb4c2b
commit
11410890cd
@@ -92,7 +92,7 @@ public:
|
||||
inline MxLong GetBmiStride() const { return ((m_bmiHeader->biWidth + 3) & -4); }
|
||||
inline MxLong GetBmiHeight() const { return m_bmiHeader->biHeight; }
|
||||
inline MxLong GetBmiHeightAbs() const { return AbsFlipped(m_bmiHeader->biHeight); }
|
||||
inline MxU8* GetBitmapData() const { return m_data; }
|
||||
inline MxU8* GetImage() const { return m_data; }
|
||||
inline MxBITMAPINFO* GetBitmapInfo() const { return m_info; }
|
||||
inline MxLong GetDataSize() const
|
||||
{
|
||||
|
||||
@@ -64,13 +64,13 @@ public:
|
||||
virtual LPDIRECTDRAWSURFACE VTable0x78() { return m_unk0x58; } // vtable+0x78
|
||||
|
||||
// FUNCTION: LEGO1 0x1000c7c0
|
||||
virtual MxBool VTable0x7c() { return m_bitmap != NULL || m_alpha != NULL; } // vtable+0x7c
|
||||
virtual MxBool VTable0x7c() { return m_frameBitmap != NULL || m_alpha != NULL; } // vtable+0x7c
|
||||
|
||||
// FUNCTION: LEGO1 0x1000c7e0
|
||||
virtual MxS32 GetWidth() { return m_alpha ? m_alpha->m_width : m_bitmap->GetBmiWidth(); } // vtable+0x80
|
||||
virtual MxS32 GetWidth() { return m_alpha ? m_alpha->m_width : m_frameBitmap->GetBmiWidth(); } // vtable+0x80
|
||||
|
||||
// FUNCTION: LEGO1 0x1000c800
|
||||
virtual MxS32 GetHeight() { return m_alpha ? m_alpha->m_height : m_bitmap->GetBmiHeightAbs(); } // vtable+0x84
|
||||
virtual MxS32 GetHeight() { return m_alpha ? m_alpha->m_height : m_frameBitmap->GetBmiHeightAbs(); } // vtable+0x84
|
||||
|
||||
// VTABLE: LEGO1 0x100dc2bc
|
||||
// SIZE 0x0c
|
||||
@@ -90,7 +90,7 @@ public:
|
||||
};
|
||||
|
||||
inline MxS32 PrepareRects(RECT& p_rectDest, RECT& p_rectSrc);
|
||||
inline MxBitmap* GetBitmap() { return m_bitmap; }
|
||||
inline MxBitmap* GetBitmap() { return m_frameBitmap; }
|
||||
inline AlphaMask* GetAlphaMask() { return m_alpha; }
|
||||
|
||||
inline void SetBit0(BOOL p_e) { m_flags.m_bit0 = p_e; }
|
||||
@@ -114,7 +114,7 @@ private:
|
||||
protected:
|
||||
void Destroy(MxBool p_fromDestructor);
|
||||
|
||||
MxBitmap* m_bitmap; // 0x50
|
||||
MxBitmap* m_frameBitmap; // 0x50
|
||||
AlphaMask* m_alpha; // 0x54
|
||||
LPDIRECTDRAWSURFACE m_unk0x58; // 0x58
|
||||
MxS16 m_unk0x5c; // 0x5c
|
||||
|
||||
Reference in New Issue
Block a user