diff --git a/LEGO1/legoutil.cpp b/LEGO1/legoutil.cpp index 6e447c70..a088dc58 100644 --- a/LEGO1/legoutil.cpp +++ b/LEGO1/legoutil.cpp @@ -3,8 +3,6 @@ #include "mxomni.h" #include "mxtypes.h" -#include "math.h" - #include // OFFSET: LEGO1 0x1003e300 diff --git a/LEGO1/mxvideopresenter.cpp b/LEGO1/mxvideopresenter.cpp index f48a0f8b..7f598200 100644 --- a/LEGO1/mxvideopresenter.cpp +++ b/LEGO1/mxvideopresenter.cpp @@ -1,5 +1,5 @@ #include "mxvideopresenter.h" -#include "MxVideoManager.h" +#include "mxvideomanager.h" DECOMP_SIZE_ASSERT(MxVideoPresenter, 0x64); 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++) { if (*t_ptr) { // 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)); } t_ptr++;