Avoid cursor warp on activation
This commit is contained in:
parent
f9cc483e67
commit
6aa54f26f4
1 changed files with 1 additions and 0 deletions
1
mouse.c
1
mouse.c
|
@ -85,6 +85,7 @@ void mouse_lock()
|
|||
if(mouse_active && !ddraw->locked)
|
||||
{
|
||||
ddraw->locked = TRUE;
|
||||
SetCursorPos(ddraw->center.x, ddraw->center.y);
|
||||
ClipCursor(&ddraw->cursorclip);
|
||||
while(ShowCursor(FALSE) > 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue