I drilled holes for a round screen and managed to mess it up with a few degrees.
I figured I could just fix it in software and rotate the screen but to my surprise the rotate only accepts 90 degree steps.
I get that this is the most common when having square screens, but is there actually any reason for this limit?
Why can’t I rotate 3 degrees.
Is there actually a reason or was this due to screens was square when the code was written?
The “roundness” is just masking unused corners. It would be resource intensive to rotate any screen, round or rectangular at custom degrees on software.
I assume that rotating 90 degrees is an fairly simple matter of swapping the x and y coordinates (row and column) … whereas any other value requires calculating each pixel, and will result in jagged edges. That’s why modern PC video cards have hundreds of high speed processor cores.
There isn’t a clean mapping of 1 “computer” pixel to 1 “screen” pixel at any rotation angle other than a multiple of 90 degrees.
That said scaling either on the computer or monitor may have the same issue (depending on the scaling factor) and scaling is more widely supported.
Rotations (other than 90) are possible on Linux, but not on Windows or OSX however I am not sure how practical it will be to make it look good especially if its only off by a degree or 3.