koreader/koreader — pull request #1182 by hwhw (2014-11-15 21:04:53+00:00)
Title: fix bug in viewport offset calculation for refreshes

The calculation did not correctly calculate the offset in rotated
modes when the rotation was 90 or 270 degrees. Under these circumstances,
getWidth() and getHeight() did return rotated values for the framebuffer,
while Device.viewport did return not rotated values.