mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
automatically lock the cursor in windowed-fullscreen mode
This commit is contained in:
parent
c5769d49de
commit
e04bcfe43c
@ -501,7 +501,7 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
|
|||||||
|
|
||||||
This->render.run = TRUE;
|
This->render.run = TRUE;
|
||||||
|
|
||||||
BOOL lockMouse = ddraw->locked;
|
BOOL lockMouse = ddraw->locked || This->fullscreen;
|
||||||
mouse_unlock();
|
mouse_unlock();
|
||||||
|
|
||||||
memset(&This->render.mode, 0, sizeof(DEVMODE));
|
memset(&This->render.mode, 0, sizeof(DEVMODE));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user