Kobo Aura H2O: fix offset for reverse landscape (rotation_mode 3)

This commit is contained in:
Frans de Jonge
2014-10-17 13:25:13 +02:00
parent 9d6af18330
commit f3d5d5b030

View File

@@ -79,10 +79,14 @@ function Screen:init()
return Screen:getHeightDahlia()
end
function self:offsetX()
return 0
if Screen.cur_rotation_mode == 3 then
return 10
else
return 0
end
end
function self:offsetY()
if Screen.cur_rotation_mode == 0 or Screen.cur_rotation_mode == 3 then
if Screen.cur_rotation_mode == 0 then
return 10
else
return 0