fix SetCursor hook

This commit is contained in:
FunkyFr3sh 2021-06-06 04:13:10 +02:00
parent 3317bdebf9
commit 3090f856da

View file

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