mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 09:38:14 -05:00
Copy constructor for MxVideoPresenter::AlphaMask (#229)
This commit is contained in:
parent
af0e38176c
commit
ae908a74cc
2 changed files with 15 additions and 2 deletions
|
@ -67,7 +67,7 @@ MxS32 MxVideoPresenter::GetHeight()
|
|||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b24f0
|
||||
MxVideoPresenter::AlphaMask::AlphaMask(MxBitmap &p_bitmap)
|
||||
MxVideoPresenter::AlphaMask::AlphaMask(const MxBitmap &p_bitmap)
|
||||
{
|
||||
m_width = p_bitmap.GetBmiWidth();
|
||||
// DECOMP: ECX becomes word-sized if these are not two separate actions.
|
||||
|
@ -147,6 +147,18 @@ MxVideoPresenter::AlphaMask::AlphaMask(MxBitmap &p_bitmap)
|
|||
}
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b2670
|
||||
MxVideoPresenter::AlphaMask::AlphaMask(const MxVideoPresenter::AlphaMask &p_alpha)
|
||||
{
|
||||
m_width = p_alpha.m_width;
|
||||
m_height = p_alpha.m_height;
|
||||
|
||||
MxS32 size = ((m_width * m_height) / 8) + 1;
|
||||
m_bitmask = new MxU8[size];
|
||||
memcpy(m_bitmask, p_alpha.m_bitmask, size);
|
||||
}
|
||||
|
||||
|
||||
// OFFSET: LEGO1 0x100b26d0
|
||||
MxVideoPresenter::AlphaMask::~AlphaMask()
|
||||
{
|
||||
|
|
|
@ -55,7 +55,8 @@ class MxVideoPresenter : public MxMediaPresenter
|
|||
MxU16 m_width;
|
||||
MxU16 m_height;
|
||||
|
||||
AlphaMask(MxBitmap &);
|
||||
AlphaMask(const MxBitmap &);
|
||||
AlphaMask(const AlphaMask &);
|
||||
virtual ~AlphaMask();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue