mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
input: apply tablet rotation before area transformation
This makes the behavior consistent with auto-rotation as a result of output mapping.
This commit is contained in:
parent
df12572f29
commit
f20b2c7632
2 changed files with 2 additions and 2 deletions
|
|
@ -125,9 +125,9 @@ tablet_get_coords(struct drawing_tablet *tablet, double *x, double *y, double *d
|
|||
*y = tablet->y;
|
||||
*dx = tablet->dx;
|
||||
*dy = tablet->dy;
|
||||
adjust_for_rotation(rc.tablet.rotation, x, y);
|
||||
adjust_for_tablet_area(tablet->tablet->width_mm, tablet->tablet->height_mm,
|
||||
rc.tablet.box, x, y);
|
||||
adjust_for_rotation(rc.tablet.rotation, x, y);
|
||||
adjust_for_rotation_relative(rc.tablet.rotation, dx, dy);
|
||||
adjust_for_motion_sensitivity(rc.tablet_tool.relative_motion_sensitivity, dx, dy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue