mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
Update xf86-video-ati to 7.8.0 Update xf86-video-intel to 2.99.917.20170103 Update xf86-input-synaptics to 1.9.0 Update xf86-input-evdev to 2.10.5 Update xf86-video-r128 to 6.10.2 Update xf86-video-rendition to 4.2.6 New port: xf86-video-geode PR: 214591,216269,214687,214593,214715,216276,216277,216278,216287, 216288,216292,216298,214560,216299,216300,216301,216302 Approved by: swills (mentor, portmgr) Differential Revision: https://reviews.freebsd.org/D9436
18 lines
515 B
C
18 lines
515 B
C
--- src/eventcomm.c.orig 2016-09-30 07:09:32 UTC
|
|
+++ src/eventcomm.c
|
|
@@ -421,10 +421,15 @@ event_get_abs(struct libevdev *evdev, in
|
|
/* We dont trust a zero fuzz as it probably is just a lazy value */
|
|
if (fuzz && abs->fuzz > 0)
|
|
*fuzz = abs->fuzz;
|
|
+#ifdef __linux__
|
|
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
|
|
if (res)
|
|
*res = abs->resolution;
|
|
#endif
|
|
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
|
|
+ if (res)
|
|
+ *res = abs->resolution;
|
|
+#endif
|
|
|
|
return 0;
|
|
}
|