From 37d583ecd42bb19d7b8e58eff6b967dc4214efbb Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 31 Dec 2023 13:31:48 -0500 Subject: [PATCH] Improvements --- LEGO1/mxdisplaysurface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LEGO1/mxdisplaysurface.cpp b/LEGO1/mxdisplaysurface.cpp index b811615d..4cf0df57 100644 --- a/LEGO1/mxdisplaysurface.cpp +++ b/LEGO1/mxdisplaysurface.cpp @@ -416,7 +416,8 @@ void MxDisplaySurface::VTable0x28( data += v56; surface += v62; - memcpy(surface, surfaceBefore, length); + // Odd expression for the length? + memcpy(surface, surfaceBefore, 4 * ((MxU32) (4 * p_width) / 4)); surface += ddsd.lPitch; } }