mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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:
parent
3b4b1c2e8f
commit
323ab260fb
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue