From 5d2a4410648dfc993e6dbc01cbf23941a92404c3 Mon Sep 17 00:00:00 2001 From: Mihai Vasiliu Date: Fri, 29 Dec 2023 18:41:53 +0200 Subject: [PATCH] Add viewport for PB743K3 (#11302) The bezel covers a couple of pixels of the screen, so adjust not to show content under the bezel. --- frontend/device/pocketbook/device.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/device/pocketbook/device.lua b/frontend/device/pocketbook/device.lua index 789d759ef..21b35940b 100644 --- a/frontend/device/pocketbook/device.lua +++ b/frontend/device/pocketbook/device.lua @@ -1,4 +1,5 @@ local Generic = require("device/generic/device") -- <= look at this file! +local Geom = require("ui/geometry") local UIManager local logger = require("logger") local ffi = require("ffi") @@ -706,6 +707,7 @@ end local PocketBook743K3 = PocketBook:extend{ model = "PBInkPadColor3", display_dpi = 300, + viewport = Geom:new{x=3, y=2, w=1395, h=1864}, color_saturation = 1.5, hasColorScreen = yes, canHWDither = yes, -- Adjust color saturation with inkview