mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
fix invisible cursor on alt+tab issue
(cherry picked from commit 338d3aa2a2dcc9ad0a8385ccdee9447260eabe7f)
This commit is contained in:
parent
bff9a9605c
commit
132fd1f700
@ -80,11 +80,7 @@ void mouse_unlock()
|
||||
real_GetClientRect(g_ddraw->hwnd, &rc);
|
||||
real_MapWindowPoints(g_ddraw->hwnd, HWND_DESKTOP, (LPPOINT)&rc, 2);
|
||||
|
||||
CURSORINFO ci = { .cbSize = sizeof(CURSORINFO) };
|
||||
if (real_GetCursorInfo(&ci) && ci.flags == 0)
|
||||
{
|
||||
while (real_ShowCursor(TRUE) < 0);
|
||||
}
|
||||
while (real_ShowCursor(TRUE) < 0);
|
||||
|
||||
real_ClipCursor(NULL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user