mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-26 17:51:16 +00:00
Transition_Windows 100%
This commit is contained in:
parent
488ed18d9d
commit
ab1a875c08
@ -369,17 +369,18 @@ void MxTransitionManager::Transition_Windows()
|
|||||||
if (res == DD_OK) {
|
if (res == DD_OK) {
|
||||||
SubmitCopyRect(&ddsd);
|
SubmitCopyRect(&ddsd);
|
||||||
|
|
||||||
|
MxU8 *line = (MxU8 *) ddsd.lpSurface + m_animationTimer * ddsd.lPitch;
|
||||||
|
|
||||||
MxS32 bytesPerPixel = ddsd.ddpfPixelFormat.dwRGBBitCount / 8;
|
MxS32 bytesPerPixel = ddsd.ddpfPixelFormat.dwRGBBitCount / 8;
|
||||||
MxS32 bytesPerLine = bytesPerPixel * 640;
|
MxS32 bytesPerLine = bytesPerPixel * 640;
|
||||||
|
|
||||||
MxU8 *line = (MxU8 *) ddsd.lpSurface + m_animationTimer * ddsd.lPitch;
|
|
||||||
memset(line, 0, bytesPerLine);
|
memset(line, 0, bytesPerLine);
|
||||||
|
|
||||||
for (MxS32 i = m_animationTimer + 1; i < 480 - m_animationTimer; i++) {
|
for (MxS32 i = m_animationTimer + 1; i < 480 - m_animationTimer; i++) {
|
||||||
line += ddsd.lPitch;
|
line += ddsd.lPitch;
|
||||||
|
|
||||||
memset(line + m_animationTimer * bytesPerPixel, 0, bytesPerLine);
|
memset(line + m_animationTimer * bytesPerPixel, 0, bytesPerPixel);
|
||||||
memset(line + 640 + (-1 - m_animationTimer) * bytesPerPixel, 0, bytesPerLine);
|
memset(line + 640 + (-1 - m_animationTimer) * bytesPerPixel, 0, bytesPerPixel);
|
||||||
}
|
}
|
||||||
|
|
||||||
line += ddsd.lPitch;
|
line += ddsd.lPitch;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user