Enums in mxtransitionmanager.cpp (#1491)

This commit is contained in:
Anders Jenbo 2025-05-15 07:03:33 +02:00 committed by GitHub
parent dabd404111
commit ad5ccd4e8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -291,10 +291,10 @@ void MxTransitionManager::MosaicTransition()
memset(&ddsd, 0, sizeof(ddsd)); memset(&ddsd, 0, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd); ddsd.dwSize = sizeof(ddsd);
HRESULT res = m_ddSurface->Lock(NULL, &ddsd, 1, NULL); HRESULT res = m_ddSurface->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL);
if (res == DDERR_SURFACELOST) { if (res == DDERR_SURFACELOST) {
m_ddSurface->Restore(); m_ddSurface->Restore();
res = m_ddSurface->Lock(NULL, &ddsd, 1, NULL); res = m_ddSurface->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL);
} }
if (res == DD_OK) { if (res == DD_OK) {