1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

reset device when nonexclusive is enabled

This commit is contained in:
FunkyFr3sh 2023-08-15 06:27:54 +02:00
parent 486baae2ef
commit 15e7f9d2c3

View File

@ -967,6 +967,9 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
g_ddraw->render.height,
swp_flags);
if (d3d9_active && g_ddraw->nonexclusive)
d3d9_reset(TRUE);
g_ddraw->last_set_window_pos_tick = timeGetTime();
mouse_lock();