Enums in mxtransitionmanager.cpp

This commit is contained in:
Anders Jenbo 2025-05-15 06:55:52 +02:00 committed by GitHub
parent dbbf373748
commit 1753d56369
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));
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) {
m_ddSurface->Restore();
res = m_ddSurface->Lock(NULL, &ddsd, 1, NULL);
res = m_ddSurface->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL);
}
if (res == DD_OK) {