mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Input: mousedev - fix regression of inverting axes
Introduced by 987a6c0298 a swap in max/min
calculation gets fixed by this patch.
Reported-by: Bruno Prémont <[email protected]>
Signed-off-by: Christoph Fritz <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
8905aaafb4
commit
268ba5c05b
1 changed files with 4 additions and 4 deletions
|
|
@ -138,8 +138,8 @@ static void mousedev_touchpad_event(struct input_dev *dev,
|
|||
|
||||
fx(0) = value;
|
||||
if (mousedev->touch && mousedev->pkt_count >= 2) {
|
||||
size = input_abs_get_min(dev, ABS_X) -
|
||||
input_abs_get_max(dev, ABS_X);
|
||||
size = input_abs_get_max(dev, ABS_X) -
|
||||
input_abs_get_min(dev, ABS_X);
|
||||
if (size == 0)
|
||||
size = 256 * 2;
|
||||
|
||||
|
|
@ -155,8 +155,8 @@ static void mousedev_touchpad_event(struct input_dev *dev,
|
|||
fy(0) = value;
|
||||
if (mousedev->touch && mousedev->pkt_count >= 2) {
|
||||
/* use X size for ABS_Y to keep the same scale */
|
||||
size = input_abs_get_min(dev, ABS_X) -
|
||||
input_abs_get_max(dev, ABS_X);
|
||||
size = input_abs_get_max(dev, ABS_X) -
|
||||
input_abs_get_min(dev, ABS_X);
|
||||
if (size == 0)
|
||||
size = 256 * 2;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue