rename setScreenViewMode to setScreenMode

This commit is contained in:
Qingping Hou
2013-02-03 13:13:46 +08:00
parent 2218d3bd73
commit 0dba667937
6 changed files with 11 additions and 11 deletions

View File

@@ -130,9 +130,9 @@ function ReaderView:PanningUpdate(dx, dy)
return true
end
function ReaderView:onSetScreenViewMode(new_mode)
function ReaderView:onSetScreenMode(new_mode)
if new_mode == "landscape" or new_mode == "portrait" then
Screen:setViewMode(new_mode)
Screen:setScreenMode(new_mode)
self.ui:handleEvent(Event:new("SetDimensions", Screen:getSize()))
end
return true