improve cursor lock

This commit is contained in:
FunkyFr3sh 2021-06-12 05:45:28 +02:00
parent 2c2a83d93c
commit a399797982
4 changed files with 9 additions and 1 deletions

View file

@ -64,6 +64,8 @@ void mouse_lock()
}
else
{
real_SetCursor(g_ddraw->old_cursor);
if (g_ddraw->hidecursor)
{
g_ddraw->hidecursor = FALSE;
@ -125,6 +127,8 @@ void mouse_unlock()
}
}
real_SetCursor(LoadCursor(NULL, IDC_ARROW));
real_ClipCursor(NULL);
real_SetCursorPos(