Skip to content

Commit

Permalink
FB/sunxi: Use the screen's dimensions, not the viewport
Browse files Browse the repository at this point in the history
Followup to the rotation hack fix from koreader#1725
  • Loading branch information
NiLuJe committed Jan 14, 2024
1 parent ba77c6d commit b808957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffi/framebuffer_sunxi.lua
Expand Up @@ -120,8 +120,8 @@ local function disp_update(fb, ioc_cmd, ioc_data, no_merge, is_flashing, wavefor
if fb._just_rotated then
x = 0
y = 0
w = fb:getWidth()
h = fb:getHeight()
w = bb:getWidth()
h = bb:getHeight()
fb._just_rotated = nil
no_merge = true
end
Expand Down

0 comments on commit b808957

Please sign in to comment.