mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 10:41:15 +00:00
documentation
This commit is contained in:
parent
71594e09ac
commit
f48225abd4
@ -325,6 +325,7 @@ void MxTransitionManager::MosaicTransition()
|
|||||||
// For each of the 10 rows in the 10x10 square:
|
// For each of the 10 rows in the 10x10 square:
|
||||||
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
|
||||||
MxU16* pos = (MxU16*) ((MxU8*) ddsd.lpSurface + k * ddsd.lPitch + xShift);
|
MxU16* pos = (MxU16*) ((MxU8*) ddsd.lpSurface + k * ddsd.lPitch + xShift);
|
||||||
memset(pos, sample, 10);
|
memset(pos, sample, 10);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user