mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 01:28:30 -05:00
remove redundant MxU16 cast in MosaicTransition()
mistake, but it gets optimized out anyways
This commit is contained in:
parent
121708a574
commit
9207d1cb28
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue