Skip to content

Commit

Permalink
[fix] Android nightmode landscape (#776)
Browse files Browse the repository at this point in the history
Forgot to set rotation on the second blitbuffer. Fixes koreader/koreader#3945.
  • Loading branch information
Frenzie committed Dec 13, 2018
1 parent 8b4adb8 commit a6b824b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ffi/framebuffer_android.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function framebuffer:refreshFullImp()
bb:setInverse(ext_bb:getInverse())
-- adapt to possible rotation changes
bb:setRotation(ext_bb:getRotation())
self.invert_bb:setRotation(ext_bb:getRotation())

if ext_bb:getInverse() == 1 then
self.invert_bb:invertblitFrom(ext_bb)
Expand Down

0 comments on commit a6b824b

Please sign in to comment.