View Single Post
Old 03-22-2016, 03:40 PM   #18
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
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...
geekmaster is offline   Reply With Quote