From 1177baaf01b58470654e33d32888b68197113a8d Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Sat, 8 Feb 2020 10:08:13 +0100 Subject: [PATCH] [CI] Ignore unscaled size check on mt_width/height (#5829) See https://github.com/koreader/koreader/pull/5828#issuecomment-583677718 * fix luacheck too --- frontend/device/remarkable/device.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/device/remarkable/device.lua b/frontend/device/remarkable/device.lua index 35eff0d73..f309ac3b5 100644 --- a/frontend/device/remarkable/device.lua +++ b/frontend/device/remarkable/device.lua @@ -1,7 +1,5 @@ local Generic = require("device/generic/device") -- <= look at this file! local logger = require("logger") -local TimeVal = require("ui/timeval") -local ffi = require("ffi") local function yes() return true end local function no() return false end @@ -14,7 +12,6 @@ local Remarkable = Generic:new{ canReboot = yes, canPowerOff = yes, isTouchDevice = yes, - hasKeys = yes, hasFrontlight = no, display_dpi = 226, } @@ -25,8 +22,8 @@ local ABS_Y = 01 local ABS_MT_POSITION_X = 53 local ABS_MT_POSITION_Y = 54 -- Resolutions from libremarkable src/framebuffer/common.rs -local mt_width = 767 -local mt_height = 1023 +local mt_width = 767 -- unscaled_size_check: ignore +local mt_height = 1023 -- unscaled_size_check: ignore local mt_scale_x = 1404 / mt_width local mt_scale_y = 1872 / mt_height local adjustTouchEvt = function(self, ev)