From 871f59bfa988562ecb1c895d4d859a70f648a6b3 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 31 Dec 2023 14:31:39 -0500 Subject: [PATCH] Improvements --- LEGO1/mxdisplaysurface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LEGO1/mxdisplaysurface.cpp b/LEGO1/mxdisplaysurface.cpp index 93367125..ab2e7f83 100644 --- a/LEGO1/mxdisplaysurface.cpp +++ b/LEGO1/mxdisplaysurface.cpp @@ -381,9 +381,10 @@ void MxDisplaySurface::VTable0x28( } data += v22; + surface += v55; - memcpy(&surface[v55], surfaceBefore, 2 * p_width); - surface = &surface[v55] + ddsd.lPitch; + memcpy(surface, surfaceBefore, 2 * p_width); + surface += ddsd.lPitch; } break; }