Previously the arbitration rectangle would be moved to lie completely in
the first quadrant of the coordinate system.
Signed-off-by: hrdl <51402-hrdl@users.noreply.gitlab.freedesktop.org>
* If the stylus is tilted left (tip further right than the eraser
* end) assume left-handed mode.
*
- * Obviously if we'd run out of the boundaries, we rescale the rect
+ * Obviously if we'd run out of the boundaries, we clip the rect
* accordingly.
*/
if (tablet->axes.tilt.x > 0) {
}
if (r.x < 0) {
- r.w -= r.x;
+ r.w += r.x;
r.x = 0;
}
r.y = mm.y - 100;
r.h = 250;
if (r.y < 0) {
- r.h -= r.y;
+ r.h += r.y;
r.y = 0;
}