1
0
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:
FunkyFr3sh 2018-08-07 03:57:46 +02:00
parent eb93d12e1d
commit 068c3af8e1

View File

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