only lock cursor in WM_ACTIVATE in fullscreen mode - fixes cursor lock bug in ubuntu
This commit is contained in:
parent
eb93d12e1d
commit
068c3af8e1
1 changed files with 5 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue