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

Fix cursor display

This commit is contained in:
Toni Spets 2010-11-08 19:23:39 +02:00
parent 52ec288169
commit 88bac67fd5

View File

@ -99,7 +99,8 @@ void mouse_unlock()
if(ddraw->locked)
{
ShowCursor(TRUE);
while(ShowCursor(TRUE) < 0);
SetCursor(LoadCursor(NULL, IDC_ARROW));
}
ddraw->locked = FALSE;
@ -117,6 +118,8 @@ void mouse_init(HWND hWnd)
unsigned char buf[7];
SetCursor(LoadCursor(NULL, IDC_ARROW));
GetWindowThreadProcessId(hWnd, &tmp);
hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, tmp);