remove redundant MxU16 cast in MosaicTransition()

mistake, but it gets optimized out anyways
This commit is contained in:
Ramen2X 2024-03-11 17:37:45 -04:00 committed by GitHub
parent 121708a574
commit 9207d1cb28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -326,7 +326,7 @@ void MxTransitionManager::MosaicTransition()
for (MxS32 k = 10 * row; k < 10 * row + 10; k++) { for (MxS32 k = 10 * row; k < 10 * row + 10; k++) {
if (ddsd.ddpfPixelFormat.dwRGBBitCount == 8) { if (ddsd.ddpfPixelFormat.dwRGBBitCount == 8) {
// Optimization: If the pixel is only one byte, we can use memset // 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); memset(pos, sample, 10);
} }
else { else {