Skip to content

Commit

Permalink
Kobo Aura H2O: fix offset for reverse landscape (rotation_mode 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenzie committed Oct 17, 2014
1 parent 9d6af18 commit f3d5d5b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/ui/device/screen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3d5d5b

Please sign in to comment.