Modify the value of synaptics major and minor

TP:
Take the larger value of x_width and y_width as the major, and the
smaller value as the minor.

Change-Id: I15461a286210e8925d5a497e9005d4dd1c624352
Reviewed-on: https://gerrit.mot.com/1542931
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong 2020-04-26 19:55:53 +08:00 • committed by litong20
commit 323ab260fb

View file

@ -768,8 +768,13 @@ static void touch_report(void)
case GLOVED_FINGER:
x = object_data[idx].x_pos;
y = object_data[idx].y_pos;
minor = object_data[idx].x_width * bdata->size_to_pixel_multiple_factor;
major = object_data[idx].y_width * bdata->size_to_pixel_multiple_factor;
if (object_data[idx].x_width > object_data[idx].y_width) {
minor = object_data[idx].y_width * bdata->size_to_pixel_multiple_factor;
major = object_data[idx].x_width * bdata->size_to_pixel_multiple_factor;
} else {
minor = object_data[idx].x_width * bdata->size_to_pixel_multiple_factor;
major = object_data[idx].y_width * bdata->size_to_pixel_multiple_factor;
}
if (bdata->swap_axes) {
temp = x;
x = y;