mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
only lock cursor in WM_ACTIVATE in fullscreen mode - fixes cursor lock bug in ubuntu
This commit is contained in:
parent
eb93d12e1d
commit
068c3af8e1
@ -574,10 +574,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
if (!ddraw->windowed)
|
||||
{
|
||||
ChangeDisplaySettings(&ddraw->render.mode, CDS_FULLSCREEN);
|
||||
}
|
||||
if (wParam == WA_ACTIVE)
|
||||
{
|
||||
mouse_lock();
|
||||
|
||||
if (wParam == WA_ACTIVE)
|
||||
{
|
||||
mouse_lock();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (wParam == WA_INACTIVE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user