From 3090f856da0229dccae2d724b84dd3ad784afb39 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sun, 6 Jun 2021 04:13:10 +0200 Subject: [PATCH] fix SetCursor hook --- src/winapi_hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index 1e7faa0..3681a5e 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -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;