summaryrefslogtreecommitdiffstats
path: root/acompiler/xorg-xf86-input-elographics/elographics-1.2.3-abi.patch
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-10-14 09:16:11 +0200
committertnut <thierryn1 at hispeed dot ch>2010-10-14 09:16:11 +0200
commit6d340f40d7c8e98a1a21772312812ed35c524bdf (patch)
tree4cec741952bf4be5e5614ab0afe1d5f84c3a7cc4 /acompiler/xorg-xf86-input-elographics/elographics-1.2.3-abi.patch
parentbdee9a37eddc1ae3347ca41866b6159459d1428c (diff)
downloadnutyx-extra-6d340f40d7c8e98a1a21772312812ed35c524bdf.tar.gz
nutyx-extra-6d340f40d7c8e98a1a21772312812ed35c524bdf.tar.bz2
nutyx-extra-6d340f40d7c8e98a1a21772312812ed35c524bdf.tar.xz
nutyx-extra-6d340f40d7c8e98a1a21772312812ed35c524bdf.zip
xorg-xf86-input-elographics, port nettoyé
Diffstat (limited to 'acompiler/xorg-xf86-input-elographics/elographics-1.2.3-abi.patch')
-rw-r--r--acompiler/xorg-xf86-input-elographics/elographics-1.2.3-abi.patch73
1 files changed, 0 insertions, 73 deletions
diff --git a/acompiler/xorg-xf86-input-elographics/elographics-1.2.3-abi.patch b/acompiler/xorg-xf86-input-elographics/elographics-1.2.3-abi.patch
deleted file mode 100644
index b90fe99d8..000000000
--- a/acompiler/xorg-xf86-input-elographics/elographics-1.2.3-abi.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From a18af14b1df5271fbe3100df3fcb3a8811981ddf Mon Sep 17 00:00:00 2001
-From: Peter Hutterer <peter.hutterer@who-t.net>
-Date: Fri, 17 Jul 2009 14:44:55 +1000
-Subject: [PATCH] Cope with XINPUT ABI 7.
-
-Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
----
- src/xf86Elo.c | 25 ++++++++++++++++++++++---
- 1 files changed, 22 insertions(+), 3 deletions(-)
-
-diff --git a/src/xf86Elo.c b/src/xf86Elo.c
-index 4ca60f1..495a43c 100644
---- a/src/xf86Elo.c
-+++ b/src/xf86Elo.c
-@@ -780,6 +780,10 @@ xf86EloControl(DeviceIntPtr dev,
- unsigned char map[] = { 0, 1 };
- unsigned char req[ELO_PACKET_SIZE];
- unsigned char reply[ELO_PACKET_SIZE];
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
-+ Atom btn_label;
-+ Atom axis_labels[2] = { 0, 0 };
-+#endif
-
- switch(mode) {
-
-@@ -797,7 +801,11 @@ xf86EloControl(DeviceIntPtr dev,
- /*
- * Device reports button press for up to 1 button.
- */
-- if (InitButtonClassDeviceStruct(dev, 1, map) == FALSE) {
-+ if (InitButtonClassDeviceStruct(dev, 1,
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
-+ &btn_label,
-+#endif
-+ map) == FALSE) {
- ErrorF("Unable to allocate Elographics touchscreen ButtonClassDeviceStruct\n");
- return !Success;
- }
-@@ -818,6 +826,9 @@ xf86EloControl(DeviceIntPtr dev,
- * screen to fit one meter.
- */
- if (InitValuatorClassDeviceStruct(dev, 2,
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
-+ axis_labels,
-+#endif
- #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
- xf86GetMotionEvents,
- #endif
-@@ -827,11 +838,19 @@ xf86EloControl(DeviceIntPtr dev,
- }
- else {
- /* I will map coordinates myself */
-- InitValuatorAxisStruct(dev, 0, -1, -1,
-+ InitValuatorAxisStruct(dev, 0,
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
-+ axis_labels[0],
-+#endif
-+ -1, -1,
- 9500,
- 0 /* min_res */,
- 9500 /* max_res */);
-- InitValuatorAxisStruct(dev, 1, -1, -1,
-+ InitValuatorAxisStruct(dev, 1,
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
-+ axis_labels[1],
-+#endif
-+ -1, -1,
- 10500,
- 0 /* min_res */,
- 10500 /* max_res */);
---
-1.6.3.rc1.2.g0164.dirty
-