From 943dc996459d9a5e5589e839ce20b1ea875f6247 Mon Sep 17 00:00:00 2001 From: Robert-Jan de Dreu Date: Fri, 28 Jan 2022 16:17:36 +0100 Subject: [PATCH] PocketBook: handle rendering of interface and books directly with inkview (#8727) Use ffi/framebuffer_pocketbook.lua, using Pocketbooks's own inkview library for framebuffer interactions. --- base | 2 +- frontend/device/pocketbook/device.lua | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/base b/base index 9548f1fc0..fb7610cf1 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 9548f1fc0a5010b2383058d005572c2919702c4a +Subproject commit fb7610cf114f19eec6010121b2e262d727ec3c08 diff --git a/frontend/device/pocketbook/device.lua b/frontend/device/pocketbook/device.lua index 955e4cf85..b6031ffb1 100644 --- a/frontend/device/pocketbook/device.lua +++ b/frontend/device/pocketbook/device.lua @@ -101,7 +101,7 @@ function PocketBook:init() local raw_input = self.raw_input local touch_rotation = raw_input and raw_input.touch_rotation or 0 - self.screen = require("ffi/framebuffer_mxcfb"):new { + self.screen = require("ffi/framebuffer_pocketbook"):new { device = self, debug = logger.dbg, wf_level = G_reader_settings:readSetting("wf_level") or 0, @@ -596,6 +596,12 @@ local PocketBook741 = PocketBook:new{ usingForcedRotation = landscape_ccw, } + +function PocketBook741._fb_init(fb, finfo, vinfo) + -- Pocketbook Color Lux reports bits_per_pixel = 8, but actually uses an RGB24 framebuffer + vinfo.bits_per_pixel = 24 +end + -- PocketBook Color Lux (801) local PocketBookColorLux = PocketBook:new{ model = "PBColorLux",