Merge pull request #1131 from hwhw/master
Fix refresh in rotated (landscape) mode when using viewport
This commit is contained in:
commit
27eb59a735
1 file changed
+3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user