automatically lock the cursor in windowed-fullscreen mode
This commit is contained in:
parent
c5769d49de
commit
e04bcfe43c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue