From ea71fa55904c5d9534149c2f90f8ae6e37bc416e Mon Sep 17 00:00:00 2001 From: Toni Spets Date: Sat, 2 Apr 2011 21:49:15 +0300 Subject: [PATCH] Use cursorclip to center the cursor when locking --- mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mouse.c b/mouse.c index 42eb851..c323b46 100644 --- a/mouse.c +++ b/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)