mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
reset device when nonexclusive is enabled
This commit is contained in:
parent
486baae2ef
commit
15e7f9d2c3
3
src/dd.c
3
src/dd.c
@ -967,6 +967,9 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
|||||||
g_ddraw->render.height,
|
g_ddraw->render.height,
|
||||||
swp_flags);
|
swp_flags);
|
||||||
|
|
||||||
|
if (d3d9_active && g_ddraw->nonexclusive)
|
||||||
|
d3d9_reset(TRUE);
|
||||||
|
|
||||||
g_ddraw->last_set_window_pos_tick = timeGetTime();
|
g_ddraw->last_set_window_pos_tick = timeGetTime();
|
||||||
|
|
||||||
mouse_lock();
|
mouse_lock();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user