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:
1 parent
09c654c7ec
commit
f7d538b108
30 files changed
+287
-157
No files matched your search
@@ -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