mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-27 23:45:21 +01:00
Use cursorclip to center the cursor when locking
This commit is contained in:
parent
514f35f302
commit
ea71fa5590
4
mouse.c
4
mouse.c
@ -218,8 +218,8 @@ void mouse_unlock()
|
|||||||
ddraw->locked = FALSE;
|
ddraw->locked = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ddraw->cursor.x = ddraw->width / 2;
|
ddraw->cursor.x = ddraw->cursorclip.width / 2;
|
||||||
ddraw->cursor.y = ddraw->height / 2;
|
ddraw->cursor.y = ddraw->cursorclip.height / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mouse_init(HWND hWnd)
|
void mouse_init(HWND hWnd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user