wacom: set the x/y min/max to the correct device units
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
74ffe763b6
commit
0e12369866
|
@ -810,8 +810,8 @@ class WacomProtocolSlate(WacomProtocolSpark):
|
||||||
# Here, we read real tablet dimensions before
|
# Here, we read real tablet dimensions before
|
||||||
# starting live mode
|
# starting live mode
|
||||||
self.update_dimensions()
|
self.update_dimensions()
|
||||||
self.x_max = self.width - 1000
|
self.x_max = int(self.width / self.point_size) - 1000
|
||||||
self.y_max = self.height - 500
|
self.y_max = int(self.height / self.point_size) - 500
|
||||||
|
|
||||||
return super().live_mode(mode, uhid)
|
return super().live_mode(mode, uhid)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue