1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

fix for last commit

This commit is contained in:
FunkyFr3sh 2021-06-12 05:57:45 +02:00
parent a399797982
commit 94e5652e11

View File

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