fix for HOMM4 cursor issues

This commit is contained in:
FunkyFr3sh 2023-07-07 23:54:59 +02:00
parent 6101e34ddd
commit dfe15ec8b0
2 changed files with 6 additions and 1 deletions

View file

@ -922,7 +922,9 @@ HRESULT dd_SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
if (!g_ddraw->devmode)
{
HCURSOR cursor = real_SetCursor(LoadCursor(NULL, IDC_ARROW));
InterlockedExchange((LONG*)&g_ddraw->old_cursor, (LONG)cursor);
if (cursor != LoadCursor(NULL, IDC_WAIT))
InterlockedExchange((LONG*)&g_ddraw->old_cursor, (LONG)cursor);
}
int cursor_count = real_ShowCursor(TRUE) - 1;