Did Unity5 break lockCursor?

I’ve upgraded to Unity5 recently, and suddenly lockCursor doesn’t function properly anymore. I’m using the following to lock the cursor, and make it invisible:

void Start() {
    Screen.lockCursor = true;
    Cursor.visible = false;
}

For some reason the cursor locks at the bottom of the Unity window instead of center in the game view like it did previously. I don’t know why this is happening all of a sudden. Any help is appreciated.

Yes, it’s been changed.

Cursor.lockState=CursorLockMode.Locked;

locks the mouse.

Cursor.lockState=CursorLockMode.None;

I’ve forgotten how to hide and show it .