mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
Landscape FM / Refactor rotation (#6309)
* landscape FM / Refactor rotation refactor and simplify the orientation handling code. the user generally cares about the rotation (what direction the device is facing) and not about if koreader is displaying in portrait or landscape mode * bump base update luasocket, libjpeg-turbo, curl add logging to evernote-sdk-lua update framebuffer for proper rotation
This commit is contained in:
@@ -850,14 +850,6 @@ function ReaderRolling:onSetDimensions(dimen)
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderRolling:onChangeScreenMode(mode, rotation)
|
||||
-- Flag it as interactive so we can properly swap to Inverted orientations
|
||||
-- (we usurp the second argument, which usually means rotation)
|
||||
self.ui:handleEvent(Event:new("SetScreenMode", mode, rotation or true))
|
||||
-- (This had the above ReaderRolling:onSetDimensions() called to resize
|
||||
-- document dimensions and keep up with current position)
|
||||
end
|
||||
|
||||
function ReaderRolling:onColorRenderingUpdate()
|
||||
self.ui.document:updateColorRendering()
|
||||
UIManager:setDirty(self.view.dialog, "partial")
|
||||
|
||||
Reference in New Issue
Block a user