Fix absRange for PLATFORM_DRM (#3517)

This commit is contained in:
ubkp 2023-11-07 18:15:23 -03:00 committed by GitHub
parent 580fbf441c
commit 271a72f2f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1549,9 +1549,14 @@ static void ConfigureEvdevDevice(char *device)
ioctl(fd, EVIOCGABS(ABS_X), &absinfo); ioctl(fd, EVIOCGABS(ABS_X), &absinfo);
worker->absRange.x = absinfo.minimum; worker->absRange.x = absinfo.minimum;
worker->absRange.width = absinfo.maximum - absinfo.minimum; worker->absRange.width = absinfo.maximum - absinfo.minimum;
platform.absRange.x = absinfo.minimum;
platform.absRange.width = absinfo.maximum - absinfo.minimum;
ioctl(fd, EVIOCGABS(ABS_Y), &absinfo); ioctl(fd, EVIOCGABS(ABS_Y), &absinfo);
worker->absRange.y = absinfo.minimum; worker->absRange.y = absinfo.minimum;
worker->absRange.height = absinfo.maximum - absinfo.minimum; worker->absRange.height = absinfo.maximum - absinfo.minimum;
platform.absRange.y = absinfo.minimum;
platform.absRange.height = absinfo.maximum - absinfo.minimum;
} }
// Check for multiple absolute movement support (usually multitouch touchscreens) // Check for multiple absolute movement support (usually multitouch touchscreens)
@ -1563,9 +1568,14 @@ static void ConfigureEvdevDevice(char *device)
ioctl(fd, EVIOCGABS(ABS_X), &absinfo); ioctl(fd, EVIOCGABS(ABS_X), &absinfo);
worker->absRange.x = absinfo.minimum; worker->absRange.x = absinfo.minimum;
worker->absRange.width = absinfo.maximum - absinfo.minimum; worker->absRange.width = absinfo.maximum - absinfo.minimum;
platform.absRange.x = absinfo.minimum;
platform.absRange.width = absinfo.maximum - absinfo.minimum;
ioctl(fd, EVIOCGABS(ABS_Y), &absinfo); ioctl(fd, EVIOCGABS(ABS_Y), &absinfo);
worker->absRange.y = absinfo.minimum; worker->absRange.y = absinfo.minimum;
worker->absRange.height = absinfo.maximum - absinfo.minimum; worker->absRange.height = absinfo.maximum - absinfo.minimum;
platform.absRange.y = absinfo.minimum;
platform.absRange.height = absinfo.maximum - absinfo.minimum;
} }
} }