mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 04:30:06 +01:00
touchpad: replace hardcoded resolution > 1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
363ff3a52b
commit
75762a7c74
1 changed files with 1 additions and 1 deletions
|
|
@ -1273,7 +1273,7 @@ tp_init_accel(struct tp_dispatch *tp, double diagonal)
|
|||
* and y resolution, so that a circle on the
|
||||
* touchpad does not turn into an elipse on the screen.
|
||||
*/
|
||||
if (res_x > 1 && res_y > 1) {
|
||||
if (!tp->device->abs.fake_resolution) {
|
||||
tp->accel.x_scale_coeff = (DEFAULT_MOUSE_DPI/25.4) / res_x;
|
||||
tp->accel.y_scale_coeff = (DEFAULT_MOUSE_DPI/25.4) / res_y;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue