From da1f710fef95a01dbe6a8effa099043ee446d456 Mon Sep 17 00:00:00 2001 From: Regan Green Date: Thu, 5 Oct 2023 07:04:59 -0400 Subject: [PATCH] Update mxtransitionmanager.cpp Correct hook export type --- LEGO1/mxtransitionmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LEGO1/mxtransitionmanager.cpp b/LEGO1/mxtransitionmanager.cpp index 6bcad8a5..d7bb280c 100644 --- a/LEGO1/mxtransitionmanager.cpp +++ b/LEGO1/mxtransitionmanager.cpp @@ -5,7 +5,7 @@ DECOMP_SIZE_ASSERT(MxTransitionManager, 0x900); DECOMP_HOOK_START_CLS(MxTransitionManager); -DECOMP_HOOK_EXPORT_CLS(0x1004bb70, MxTransitionManager, void, SubmitCopyRect, (DDSURFACEDESC&)); +DECOMP_HOOK_EXPORT_CLS(0x1004bb70, MxTransitionManager, void, SubmitCopyRect, (LPDDSURFACEDESC)); DECOMP_HOOK_END_CLS(MxTransitionManager); // 0x100f4378 @@ -275,7 +275,7 @@ void MxTransitionManager::SubmitCopyRect(LPDDSURFACEDESC ddsc) DWORD bytesPerPixel = ddsc->ddpfPixelFormat.dwRGBBitCount / 8; - const char *src = (const char*)m_copyBuffer; + const char *src = (const char *)m_copyBuffer; LONG copyPitch; copyPitch = ((m_copyRect.right - m_copyRect.left) + 1) * bytesPerPixel;