fix screen rotation mode restore for native system

pull/2/merge
Qingping Hou 12 years ago
parent 379d6216a0
commit 07d6f66565

@ -88,6 +88,10 @@ function Screen:updateRotationMode()
self.cur_rotation_mode = self.fb:getOrientation()
end
function Screen:setRotationMode(mode)
self.fb:setOrientation(Screen.native_rotation_mode)
end
function Screen:saveCurrentBB()
local width, height = self:getWidth(), self.getHeight()

@ -103,7 +103,6 @@ end
-- set up reader's setting: font
G_reader_settings = DocSettings:open(".reader")
fontmap = G_reader_settings:readSetting("fontmap")
DEBUG(fontmap)
if fontmap ~= nil then
Font.fontmap = fontmap
end
@ -132,7 +131,7 @@ end
-- @TODO dirty workaround, find a way to force native system poll
-- screen orientation and upside down mode 09.03 2012
fb:setOrientation(Screen.native_rotation_mode)
Screen:setRotationMode(Screen.native_rotation_mode)
if util.isEmulated()==0 then
os.execute("killall -cont cvm")

Loading…
Cancel
Save