linuxfb: is_always_portrait must be passed to screen init() from all frontends. (#6712)

This is because fb driver should not be inspecting self.device for low level
caps anymore.

Fixes #6711
This commit is contained in:
ezdiy
2020-09-25 13:20:02 +02:00
committed by GitHub
parent 15455b594d
commit ef8d2d0d6e
3 changed files with 3 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ function Cervantes:initEventAdjustHooks()
end
function Cervantes:init()
self.screen = require("ffi/framebuffer_mxcfb"):new{device = self, debug = logger.dbg}
self.screen = require("ffi/framebuffer_mxcfb"):new{device = self, debug = logger.dbg, is_always_portrait = self.isAlwaysPortrait()}
-- Automagically set this so we never have to remember to do it manually ;p
if self:hasNaturalLight() and self.frontlight_settings and self.frontlight_settings.frontlight_mixer then