From c2c328bb21e63a381fd6ef1e9ae37af7217bf0a1 Mon Sep 17 00:00:00 2001 From: Alexander Akhmetov Date: Fri, 20 Dec 2024 22:44:38 +0100 Subject: [PATCH] Change the screen sizes to the spec --- internal/remarkable/const_arm64.go | 4 ++-- tools/raw_client/client.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/remarkable/const_arm64.go b/internal/remarkable/const_arm64.go index dca15cb..637092b 100644 --- a/internal/remarkable/const_arm64.go +++ b/internal/remarkable/const_arm64.go @@ -6,9 +6,9 @@ const ( Model = RemarkablePaperPro // ScreenWidth of the remarkable paper pro - ScreenWidth = 1624 + ScreenWidth = 1620 // ScreenHeight of the remarkable paper pro - ScreenHeight = 2154 + ScreenHeight = 2160 ScreenSizeBytes = ScreenWidth * ScreenHeight * 4 diff --git a/tools/raw_client/client.go b/tools/raw_client/client.go index 7df5b6f..ffa1710 100644 --- a/tools/raw_client/client.go +++ b/tools/raw_client/client.go @@ -65,8 +65,8 @@ func saveImage(img *image.RGBA, output string) error { func main() { ip := flag.String("ip", "127.0.0.1", "Server IP address") port := flag.String("port", "2001", "Server port") - width := flag.Int("width", 1624, "Image width") - height := flag.Int("height", 2154, "Image height") + width := flag.Int("width", 1620, "Image width") + height := flag.Int("height", 2160, "Image height") output := flag.String("output", "screenshot.png", "Output image file") username := flag.String("username", "admin", "Basic auth username") password := flag.String("password", "password", "Basic auth password")