Fix refresh in rotated (landscape) mode when using viewport

Rotation wasn't applied to the underlying framebuffer's blitbuffer,
so refresh coordinates were cut off the wrong way.
Merge pull request #1131 from hwhw/master

Fix refresh in rotated (landscape) mode when using viewport