summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-04-20 14:56:44 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-04-21 14:17:55 +1000
commit1c162ebcaba78930f34639145a8ac01b87f8e6fd (patch)
tree0da08c71010290532a6c1b89db89b7923e9f3295
parent70b76286dbef99daabbafccd23f3ba436fe07b09 (diff)
dix: change ProcessVelocityData2D to BOOL.
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@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r--dix/ptrveloc.c2
-rw-r--r--include/ptrveloc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c
index a8066de1a..358750a24 100644
--- a/dix/ptrveloc.c
+++ b/dix/ptrveloc.c
@@ -670,7 +670,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 c14e12d61..6ca309c8c 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