Workarounds for mouse pointer issues when entering/exiting fullscreen. Patch from ecksemmess.
This commit is contained in:
parent
5ac8fd496a
commit
2323962168
1 changed files with 9 additions and 1 deletions
10
src/win.c
10
src/win.c
|
|
@ -191,6 +191,10 @@ void mainthread(LPVOID param)
|
|||
leave_fullscreen_flag = 0;
|
||||
SendMessage(ghwnd, WM_LEAVEFULLSCREEN, 0, 0);
|
||||
}
|
||||
if (video_fullscreen)
|
||||
{
|
||||
SetCursorPos(9999, 9999);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1031,7 +1035,11 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
|||
pcclip.bottom -= GetSystemMetrics(SM_CXFIXEDFRAME) + 10;
|
||||
ClipCursor(&pcclip);
|
||||
mousecapture = 1;
|
||||
ShowCursor(FALSE);
|
||||
// ShowCursor(FALSE);
|
||||
while (1)
|
||||
{
|
||||
if (ShowCursor(FALSE) < 0) break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue