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();