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 <[email protected]> --- 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 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
