mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
Avoid cursor warp on activation
This commit is contained in:
parent
f9cc483e67
commit
6aa54f26f4
1
mouse.c
1
mouse.c
@ -85,6 +85,7 @@ void mouse_lock()
|
|||||||
if(mouse_active && !ddraw->locked)
|
if(mouse_active && !ddraw->locked)
|
||||||
{
|
{
|
||||||
ddraw->locked = TRUE;
|
ddraw->locked = TRUE;
|
||||||
|
SetCursorPos(ddraw->center.x, ddraw->center.y);
|
||||||
ClipCursor(&ddraw->cursorclip);
|
ClipCursor(&ddraw->cursorclip);
|
||||||
while(ShowCursor(FALSE) > 0);
|
while(ShowCursor(FALSE) > 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user