[PATCH 13/20] dix: change ProcessVelocityData2D to BOOL.

Peter Hutterer peter.hutterer at who-t.net
Tue Apr 19 23:28:22 PDT 2011


Don't confuse users with a return type of short, that's even less indicative
that it returns 0/non-0 than "int".

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dix/ptrveloc.c     |    2 +-
 include/ptrveloc.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c
index ba6b88b..c1b8b91 100644
--- a/dix/ptrveloc.c
+++ b/dix/ptrveloc.c
@@ -674,7 +674,7 @@ QueryTrackers(DeviceVelocityPtr vel, int cur_t){
  * Perform velocity approximation based on 2D 'mickeys' (mouse motion delta).
  * return true if non-visible state reset is suggested
  */
-short
+BOOL
 ProcessVelocityData2D(
     DeviceVelocityPtr vel,
     int dx,
diff --git a/include/ptrveloc.h b/include/ptrveloc.h
index c14e12d..6ca309c 100644
--- a/include/ptrveloc.h
+++ b/include/ptrveloc.h
@@ -106,7 +106,7 @@ InitVelocityData(DeviceVelocityPtr vel);
 extern _X_EXPORT void
 InitTrackers(DeviceVelocityPtr vel, int ntracker);
 
-extern _X_EXPORT short
+extern _X_EXPORT BOOL
 ProcessVelocityData2D(DeviceVelocityPtr vel, int dx, int dy, int time);
 
 extern _X_EXPORT float
-- 
1.7.4.4



More information about the xorg-devel mailing list