From f48225abd42570d5c3e4f7d28676482f4b5c22b7 Mon Sep 17 00:00:00 2001 From: Ramen2X Date: Mon, 11 Mar 2024 17:31:16 -0400 Subject: [PATCH] documentation --- LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp b/LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp index aeeb868c..f0e0755a 100644 --- a/LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp +++ b/LEGO1/lego/legoomni/src/common/mxtransitionmanager.cpp @@ -325,6 +325,7 @@ void MxTransitionManager::MosaicTransition() // For each of the 10 rows in the 10x10 square: 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); memset(pos, sample, 10); }