Skip to content

Commit

Permalink
input-raw: fix ts_read_mt for non-MT devices without pressure
Browse files Browse the repository at this point in the history
We always use our "multitouch buffer" in read_mt - also for single touch
devices. We cannot check for real MT capabilities when setting the pressure
fallback values.
  • Loading branch information
merge committed Apr 11, 2017
1 parent e5a0941 commit 4d63bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/input-raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static void set_pressure(struct tslib_input *i)

i->current_p = 255;

if (i->mt && i->buf) {
if (i->buf) {
for (j = 0; j < i->nr; j++) {
for (k = 0; k < i->max_slots; k++)
i->buf[j][k].pressure = 255;
Expand Down

0 comments on commit 4d63bfa

Please sign in to comment.