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

@ -122,7 +122,7 @@ int WINAPI fake_ShowCursor(BOOL bShow)
HCURSOR WINAPI fake_SetCursor(HCURSOR hCursor)
{
if (g_ddraw && !g_ddraw->handlemouse && (g_ddraw->locked || g_ddraw->devmode))
return real_SetCursor(hCursor);
return real_SetCursor(g_ddraw->old_cursor = hCursor);
return NULL;
}