wacom: set the x/y min/max to the correct device units

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/215/head
Peter Hutterer 2019-08-29 13:47:45 +10:00
parent 74ffe763b6
commit 0e12369866
1 changed files with 2 additions and 2 deletions

View File

@ -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)