Commit c498c8c6 authored by Peter Hutterer's avatar Peter Hutterer

touchpad: move hysteresis margin into its own struct

No functional changes
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent e66cf8de
...@@ -143,10 +143,10 @@ tp_motion_hysteresis(struct tp_dispatch *tp, ...@@ -143,10 +143,10 @@ tp_motion_hysteresis(struct tp_dispatch *tp,
} else { } else {
x = evdev_hysteresis(x, x = evdev_hysteresis(x,
t->hysteresis_center.x, t->hysteresis_center.x,
tp->hysteresis_margin.x); tp->hysteresis.margin.x);
y = evdev_hysteresis(y, y = evdev_hysteresis(y,
t->hysteresis_center.y, t->hysteresis_center.y,
tp->hysteresis_margin.y); tp->hysteresis.margin.y);
t->hysteresis_center.x = x; t->hysteresis_center.x = x;
t->hysteresis_center.y = y; t->hysteresis_center.y = y;
t->point.x = x; t->point.x = x;
...@@ -2899,8 +2899,8 @@ tp_init_hysteresis(struct tp_dispatch *tp) ...@@ -2899,8 +2899,8 @@ tp_init_hysteresis(struct tp_dispatch *tp)
res_x = tp->device->abs.absinfo_x->resolution; res_x = tp->device->abs.absinfo_x->resolution;
res_y = tp->device->abs.absinfo_y->resolution; res_y = tp->device->abs.absinfo_y->resolution;
tp->hysteresis_margin.x = res_x/2; tp->hysteresis.margin.x = res_x/2;
tp->hysteresis_margin.y = res_y/2; tp->hysteresis.margin.y = res_y/2;
} }
static void static void
......
...@@ -269,7 +269,9 @@ struct tp_dispatch { ...@@ -269,7 +269,9 @@ struct tp_dispatch {
double orientation_to_angle; double orientation_to_angle;
} touch_size; } touch_size;
struct device_coords hysteresis_margin; struct {
struct device_coords margin;
} hysteresis;
struct { struct {
double x_scale_coeff; double x_scale_coeff;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment