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

Use cursorclip to center the cursor when locking

This commit is contained in:
Toni Spets 2011-04-02 21:49:15 +03:00
parent 514f35f302
commit ea71fa5590

View File

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