Use cursorclip to center the cursor when locking
This commit is contained in:
parent
514f35f302
commit
ea71fa5590
1 changed files with 2 additions and 2 deletions
4
mouse.c
4
mouse.c
|
@ -218,8 +218,8 @@ void mouse_unlock()
|
|||
ddraw->locked = FALSE;
|
||||
}
|
||||
|
||||
ddraw->cursor.x = ddraw->width / 2;
|
||||
ddraw->cursor.y = ddraw->height / 2;
|
||||
ddraw->cursor.x = ddraw->cursorclip.width / 2;
|
||||
ddraw->cursor.y = ddraw->cursorclip.height / 2;
|
||||
}
|
||||
|
||||
void mouse_init(HWND hWnd)
|
||||
|
|
Loading…
Reference in a new issue