From 1a87f89e8b163bb1efb0717b44f9afac25968b01 Mon Sep 17 00:00:00 2001 From: Ramen2X <64166386+Ramen2X@users.noreply.github.com> Date: Tue, 24 Oct 2023 01:02:37 -0400 Subject: [PATCH] fix odd build error --- LEGO1/legoutil.cpp | 2 -- LEGO1/mxvideopresenter.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) 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++;