File xf86-input-elo2300-1.1.2-commit-cc77936.diff of Package xorg-x11-driver-input

commit cc77936174d60ae25aab137225190dc6d31eba92
Author: Peter Hutterer <peter@cs.unisa.edu.au>
Date:   Mon May 26 22:06:23 2008 +0930

    Check for XINPUT ABI 3.

diff --git a/src/elo.c b/src/elo.c
index 5ed67f0..8382313 100644
--- a/src/elo.c
+++ b/src/elo.c
@@ -309,7 +309,10 @@ DeviceInit( DeviceIntPtr dev )
 	 * Device reports motions on 2 axes in absolute coordinates.
 	 * Device may reports touch pressure on the 3rd axis.
 	 */
-	if (InitValuatorClassDeviceStruct (dev, priv->axes, xf86GetMotionEvents,
+	if (InitValuatorClassDeviceStruct (dev, priv->axes,
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
+                    xf86GetMotionEvents,
+#endif
 									local->history_size, Absolute) == FALSE)
 	{
 		ErrorF ("Unable to allocate Elographics touchscreen ValuatorClassDeviceStruct\n");
openSUSE Build Service is sponsored by