Skip to content

Commit

Permalink
fix rotation on rotated framebuffer on Kobos
Browse files Browse the repository at this point in the history
forgot to update one settings store.
Yes, our rotation code is very convoluted.
  • Loading branch information
hwhw committed Nov 22, 2014
1 parent b821b72 commit 450e562
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ffi/framebuffer_mxcfb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ function framebuffer:init()
-- some Kobo framebuffers need to be rotated counter-clockwise (they start in landscape mode)
if self.bb:getWidth() > self.bb:getHeight() then
self.bb:rotate(-90)
self.blitbuffer_rotation_mode = self.bb:getRotation()
self.native_rotation_mode = self.ORIENTATION_PORTRAIT
self.cur_rotation_mode = self.native_rotation_mode
end
Expand Down

0 comments on commit 450e562

Please sign in to comment.