mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00: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:
@@ -2,11 +2,9 @@
|
||||
This module contains miscellaneous helper functions for the creoptions and koptoptions.
|
||||
]]
|
||||
|
||||
local Device = require("device")
|
||||
local InfoMessage = require("ui/widget/infomessage")
|
||||
local UIManager = require("ui/uimanager")
|
||||
local _ = require("gettext")
|
||||
local Screen = Device.screen
|
||||
local T = require("ffi/util").template
|
||||
|
||||
local optionsutil = {}
|
||||
@@ -19,9 +17,6 @@ function optionsutil.showValues(configurable, option, prefix)
|
||||
local default = G_reader_settings:readSetting(prefix.."_"..option.name)
|
||||
local current = configurable[option.name]
|
||||
local value_default, value_current
|
||||
if option.name == "screen_mode" then
|
||||
current = Screen:getScreenMode()
|
||||
end
|
||||
if option.toggle and option.values then
|
||||
-- build a table so we can see if current/default settings map
|
||||
-- to a known setting with a name (in option.toggle)
|
||||
|
||||
Reference in New Issue
Block a user