summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-06-01 00:59:11 +0200
committerJulien Cristau <jcristau@debian.org>2008-06-01 00:59:11 +0200
commit033361925bf0f4257271e45cab528a2506ba09fb (patch)
treee955153108ce9caba0a091d011fb25ab63efd21b
parent2cffb15678a8c7ef3709fa9e343d5961ae3919eb (diff)
Fix compiler warning: don't use deprecated calls for newer XInput ABIS.
-rw-r--r--src/xf86Tek4957.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xf86Tek4957.c b/src/xf86Tek4957.c
index de9ee83..110de77 100644
--- a/src/xf86Tek4957.c
+++ b/src/xf86Tek4957.c
@@ -152,7 +152,11 @@ TekConvert(LocalDevicePtr local,
/* Gets current screen size. It can change dynamically in the case of
a multi-head configuration with different screen sizes ... */
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0
SP=miPointerCurrentScreen();
+#else
+ SP=miPointerGetScreen(local->dev);
+#endif
W=SP->width;
H=SP->height;