Remap rotation matrix according to display rotation