From 103ecfbe110d83fd8d8a8b8d6fb552a023a8edb9 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 31 Dec 2023 15:23:08 -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 773e5264..46789886 100644 --- a/LEGO1/mxdisplaysurface.cpp +++ b/LEGO1/mxdisplaysurface.cpp @@ -385,12 +385,13 @@ void MxDisplaySurface::VTable0x28( MxU8* surface = (MxU8*) ddsd.lpSurface + (2 * p_right) + (p_bottom * ddsd.lPitch); MxLong stride = p_bitmap->GetAdjustedStride(); + // TODO: Match stride -= p_width; MxS32 length = p_width * 4; MxLong v62 = ddsd.lPitch - length; - MxU16* p16BitPal = m_16bitPal; MxS32 height = p_height; MxS32 width = p_width; + MxU16* p16BitPal = m_16bitPal; if (stride || v62) { while (height--) {