mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 14:14:47 +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;
|
||||
|
||||
BOOL lockMouse = ddraw->locked;
|
||||
BOOL lockMouse = ddraw->locked || This->fullscreen;
|
||||
mouse_unlock();
|
||||
|
||||
memset(&This->render.mode, 0, sizeof(DEVMODE));
|
||||
|
Loading…
x
Reference in New Issue
Block a user