1
0
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:
FunkyFr3sh 2018-11-24 13:34:25 +01:00
parent c5769d49de
commit e04bcfe43c

View File

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