mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
uncomment ReleaseCapture call to prevent cursor issues in windowed mode
This commit is contained in:
parent
1b0c518759
commit
6ad443cfb1
5
src/dd.c
5
src/dd.c
@ -1378,10 +1378,7 @@ HRESULT dd_SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
|
|||||||
|
|
||||||
if (!g_config.devmode)
|
if (!g_config.devmode)
|
||||||
{
|
{
|
||||||
HCURSOR cursor = real_SetCursor(LoadCursor(NULL, IDC_ARROW));
|
InterlockedExchange((LONG*)&g_ddraw.old_cursor, (LONG)real_SetCursor(LoadCursor(NULL, IDC_ARROW)));
|
||||||
|
|
||||||
if (cursor != LoadCursor(NULL, IDC_WAIT))
|
|
||||||
InterlockedExchange((LONG*)&g_ddraw.old_cursor, (LONG)cursor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int cursor_count = real_ShowCursor(TRUE) - 1;
|
int cursor_count = real_ShowCursor(TRUE) - 1;
|
||||||
|
@ -63,7 +63,7 @@ void mouse_unlock()
|
|||||||
g_mouse_locked = FALSE;
|
g_mouse_locked = FALSE;
|
||||||
|
|
||||||
real_ClipCursor(NULL);
|
real_ClipCursor(NULL);
|
||||||
//ReleaseCapture();
|
ReleaseCapture();
|
||||||
|
|
||||||
RECT rc = { 0 };
|
RECT rc = { 0 };
|
||||||
real_GetClientRect(g_ddraw.hwnd, &rc);
|
real_GetClientRect(g_ddraw.hwnd, &rc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user