add support for rotated displays