From 9207d1cb288c37eea71f6646209f8ecf33dfda6c Mon Sep 17 00:00:00 2001 From: Ramen2X Date: Mon, 11 Mar 2024 17:37:45 -0400 Subject: [PATCH] remove redundant MxU16 cast in MosaicTransition() mistake, but it gets optimized out anyways --- LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp b/LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp index f0e0755a..6373cc44 100644 --- a/LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp +++ b/LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp @@ -326,7 +326,7 @@ void MxTransitionManager::MosaicTransition() for (MxS32 k = 10 * row; k < 10 * row + 10; k++) { if (ddsd.ddpfPixelFormat.dwRGBBitCount == 8) { // Optimization: If the pixel is only one byte, we can use memset - MxU16* pos = (MxU16*) ((MxU8*) ddsd.lpSurface + k * ddsd.lPitch + xShift); + MxU8* pos = ((MxU8*) ddsd.lpSurface + k * ddsd.lPitch + xShift); memset(pos, sample, 10); } else {