Fix mapping between screen orientations and rotation angles.