From 0e123698668e6b9b7bd574c48550e8bcb8d6dea4 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 29 Aug 2019 13:47:45 +1000 Subject: [PATCH] wacom: set the x/y min/max to the correct device units Signed-off-by: Peter Hutterer --- tuhi/wacom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index 8e3e896..0d139c5 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -810,8 +810,8 @@ class WacomProtocolSlate(WacomProtocolSpark): # Here, we read real tablet dimensions before # starting live mode self.update_dimensions() - self.x_max = self.width - 1000 - self.y_max = self.height - 500 + self.x_max = int(self.width / self.point_size) - 1000 + self.y_max = int(self.height / self.point_size) - 500 return super().live_mode(mode, uhid)