fix odd build error

This commit is contained in:
Ramen2X 2023-10-24 01:02:37 -04:00
parent 987d8621df
commit 1a87f89e8b
2 changed files with 2 additions and 4 deletions

View File

@ -3,8 +3,6 @@
#include "mxomni.h" #include "mxomni.h"
#include "mxtypes.h" #include "mxtypes.h"
#include "math.h"
#include <string.h> #include <string.h>
// OFFSET: LEGO1 0x1003e300 // OFFSET: LEGO1 0x1003e300

View File

@ -1,5 +1,5 @@
#include "mxvideopresenter.h" #include "mxvideopresenter.h"
#include "MxVideoManager.h" #include "mxvideomanager.h"
DECOMP_SIZE_ASSERT(MxVideoPresenter, 0x64); DECOMP_SIZE_ASSERT(MxVideoPresenter, 0x64);
DECOMP_SIZE_ASSERT(MxVideoPresenter::AlphaMask, 0xc); DECOMP_SIZE_ASSERT(MxVideoPresenter::AlphaMask, 0xc);
@ -135,7 +135,7 @@ MxVideoPresenter::AlphaMask::AlphaMask(const MxBitmap &p_bitmap)
for (MxS32 i = 0; i < m_width; i++) { for (MxS32 i = 0; i < m_width; i++) {
if (*t_ptr) { if (*t_ptr) {
// TODO: Second CDQ instruction for abs() should not be there. // TODO: Second CDQ instruction for abs() should not be there.
MxU32 shift = abs(offset) & 7; MxS32 shift = abs(offset) & 7;
m_bitmask[offset / 8] |= (1 << abs(shift)); m_bitmask[offset / 8] |= (1 << abs(shift));
} }
t_ptr++; t_ptr++;