Changeset View
Changeset View
Standalone View
Standalone View
x11-drivers/xf86-input-synaptics/files/patch-src_eventcomm.c
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/eventcomm.c.orig 2016-04-26 23:29:23 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__) | |||||
+ if (res) | |||||
+ *res = abs->resolution; | |||||
+#endif | |||||
return 0; | |||||
} |