uncomment ReleaseCapture call to prevent cursor issues in windowed mode

This commit is contained in:
FunkyFr3sh 2024-08-30 16:02:32 +02:00
parent 1b0c518759
commit 6ad443cfb1
2 changed files with 2 additions and 5 deletions

View file

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