I did not look at your code yet, but the easiest way to rotate the screen sidways is just to shift the framebuffer copy a few bytes either way (up to a line width if needed) when rewriting to the framebuffer. Shifting multiples of the virtual line width (may be a little wider than what you see on the screen) obviously rotates the screen vertically. In other words, just use my code but do not multiply by the line width...
It will be interesting to see how simple (or complex) the final solution became in my absence...
|