diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2010-10-16 16:26:20 +0200 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2010-10-16 16:26:20 +0200 |
commit | f8f6d88082766d060d30db57962f9a6d7d338c52 (patch) | |
tree | daa7f94fa1d4eb77fde97508ebc5d84bebe5c922 /src | |
parent | 5a3cacc6ced0e0ab8831e13b470af1ab0bea3941 (diff) |
Adjust thumb detection based on kernel touch width alignment
Recently, a set of kernel drivers were updated to align the
reported touch size with actual physical size. Consequently,
the thumb detection, which contains an absolute size component,
needs to be updated. Remedied with this patch.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src')
-rw-r--r-- | src/mtstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mtstate.c b/src/mtstate.c index 4c893a2..313550b 100644 --- a/src/mtstate.c +++ b/src/mtstate.c @@ -25,9 +25,9 @@ #define TOUCH_SCALE(caps) (0.05 * caps->abs[MTDEV_TOUCH_MAJOR].maximum) #define THUMB_TOUCH(hw) (1.2 * hw->touch_minor) -#define THUMB_WIDTH_TOUCH(hw) (3 * hw->touch_major) +#define THUMB_WIDTH_TOUCH(hw) (4 * hw->touch_major) #define THUMB_WIDTH_WIDTH(hw) (1.2 * hw->width_minor) -#define THUMB_WIDTH_SIZE(hw, caps) (0.15 * get_cap_xsize(caps)) +#define THUMB_WIDTH_SIZE(hw, caps) (0.25 * get_cap_xsize(caps)) void init_mtstate(struct MTState *s) { |