mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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)
|
if (!ddraw->windowed)
|
||||||
{
|
{
|
||||||
ChangeDisplaySettings(&ddraw->render.mode, CDS_FULLSCREEN);
|
ChangeDisplaySettings(&ddraw->render.mode, CDS_FULLSCREEN);
|
||||||
}
|
|
||||||
if (wParam == WA_ACTIVE)
|
if (wParam == WA_ACTIVE)
|
||||||
{
|
{
|
||||||
mouse_lock();
|
mouse_lock();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (wParam == WA_INACTIVE)
|
else if (wParam == WA_INACTIVE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user