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

Avoid cursor warp on activation

This commit is contained in:
Toni Spets 2010-11-08 21:56:40 +02:00
parent f9cc483e67
commit 6aa54f26f4

View File

@ -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);
}