Fix AlphaMask functions (#1425)

This commit is contained in:
MS
2025-04-03 20:18:00 -04:00
committed by GitHub
parent 3b63506648
commit 93d6c18c9a
2 changed files with 8 additions and 39 deletions

View File

@@ -115,7 +115,7 @@ public:
MxLong GetDataSize() const { return AlignToFourByte(m_bmiHeader->biWidth) * GetBmiHeightAbs(); }
// FUNCTION: BETA10 0x1002c4b0
MxBool IsTopDown()
MxBool IsTopDown() const
{
if (m_bmiHeader->biCompression == BI_RGB_TOPDOWN) {
return TRUE;
@@ -130,7 +130,7 @@ public:
: -p_bitmap->AlignToFourByte(p_bitmap->GetBmiWidth()))
// FUNCTION: BETA10 0x1002c320
MxU8* GetStart(MxS32 p_left, MxS32 p_top)
MxU8* GetStart(MxS32 p_left, MxS32 p_top) const
{
if (m_bmiHeader->biCompression == BI_RGB) {
return m_data + p_left +