Merge pull request #1131 from hwhw/master

Fix refresh in rotated (landscape) mode when using viewport
This commit is contained in:
NiLuJe
2014-11-11 18:37:54 +01:00

View File

@@ -148,6 +148,9 @@ end
function Screen:setRotationMode(mode)
self.bb:rotateAbsolute(-90 * (mode - self.native_rotation_mode - self.blitbuffer_rotation_mode))
if self.viewport then
self.fb.bb:setRotation(self.bb:getRotation())
end
self.cur_rotation_mode = mode
end