Skip to content

Commit

Permalink
[fix] ffi/framebuffer_android: landscape mode was broken (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenzie committed Oct 11, 2017
1 parent 6afd448 commit 5a83793
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ffi/framebuffer_android.lua
Expand Up @@ -42,17 +42,11 @@ function framebuffer:refreshFullImp()
if bb then
local ext_bb = self.full_bb or self.bb

-- on Android we just do the whole screen
local x = 0
local y = 0
local w = buffer[0].width
local h = buffer[0].height

bb:setInverse(ext_bb:getInverse())
-- adapt to possible rotation changes
bb:setRotation(ext_bb:getRotation())

bb:blitFrom(ext_bb, x, y, x, y, w, h)
bb:blitFrom(ext_bb)
end

android.lib.ANativeWindow_unlockAndPost(android.app.window);
Expand Down

0 comments on commit 5a83793

Please sign in to comment.