mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix rotation: viewport, not framebuffer
Rotation was always referring to the framebuffer's blitbuffer, which in the case of devices with a viewport was not identical.
This commit is contained in:
@@ -142,7 +142,7 @@ function Screen:getScreenMode()
|
||||
end
|
||||
|
||||
function Screen:setRotationMode(mode)
|
||||
self.fb.bb:rotateAbsolute(-90 * (mode - self.native_rotation_mode - self.blitbuffer_rotation_mode))
|
||||
self.bb:rotateAbsolute(-90 * (mode - self.native_rotation_mode - self.blitbuffer_rotation_mode))
|
||||
self.cur_rotation_mode = mode
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user