mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -291,7 +291,7 @@ probeEvEpochTime = function(self, ev)
|
||||
end
|
||||
|
||||
function Kobo: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()}
|
||||
if self.screen.fb_bpp == 32 then
|
||||
-- Ensure we decode images properly, as our framebuffer is BGRA...
|
||||
logger.info("Enabling Kobo @ 32bpp BGR tweaks")
|
||||
|
||||
Reference in New Issue
Block a user