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:
Qingping Hou
2012-03-09 09:40:46 +08:00
parent 3dbf9877bc
commit d2aaf15dce
3 changed files with 8 additions and 51 deletions

View File

@@ -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")