add: screen.lua
* move rotation mode to global variable, now check rotation with Screen.cur_rotation_mode * move screenRotate to screen module so other UIs can use it.
This commit is contained in:
1 parent
3dbf9877bc
commit
d2aaf15dce
3 files changed
+8
-51
No files matched your search
@@ -22,6 +22,7 @@ require "pdfreader"
|
||||
require "djvureader"
|
||||
require "filechooser"
|
||||
require "settings"
|
||||
require "screen"
|
||||
|
||||
-- option parsing:
|
||||
longopts = {
|
||||
@@ -111,6 +112,8 @@ end
|
||||
|
||||
fb = einkfb.open("/dev/fb0")
|
||||
width, height = fb:getSize()
|
||||
-- read current rotation mode
|
||||
Screen:updateRotationMode()
|
||||
|
||||
-- set up reader's setting: font
|
||||
reader_settings = DocSettings:open(".reader")
|
||||
|
||||
Reference in new issue
Block a user