openhmd: Fix viewport calculation of rotated displays.