Framebuffer features/fixes for Kobo

This is a bugfix for rotation corrected calculation of rectangles. Plus a new feature that corrects rotation on framebuffer initialization on Kobos. It now works properly on my Kobo mini.