Fix cursor display
This commit is contained in:
parent
52ec288169
commit
88bac67fd5
1 changed files with 4 additions and 1 deletions
5
mouse.c
5
mouse.c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue