Enable rotation of the buffer based on window's contentRotation

If the top-level focus window has set a contentRotation, and direct
rendering is on, rotate the buffer before displaying it.