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>
This commit is contained in:
parent
70b76286db
commit
1c162ebcab
|
@ -670,7 +670,7 @@ QueryTrackers(DeviceVelocityPtr vel, int cur_t){
|
||||||
* Perform velocity approximation based on 2D 'mickeys' (mouse motion delta).
|
* Perform velocity approximation based on 2D 'mickeys' (mouse motion delta).
|
||||||
* return true if non-visible state reset is suggested
|
* return true if non-visible state reset is suggested
|
||||||
*/
|
*/
|
||||||
short
|
BOOL
|
||||||
ProcessVelocityData2D(
|
ProcessVelocityData2D(
|
||||||
DeviceVelocityPtr vel,
|
DeviceVelocityPtr vel,
|
||||||
int dx,
|
int dx,
|
||||||
|
|
|
@ -106,7 +106,7 @@ InitVelocityData(DeviceVelocityPtr vel);
|
||||||
extern _X_EXPORT void
|
extern _X_EXPORT void
|
||||||
InitTrackers(DeviceVelocityPtr vel, int ntracker);
|
InitTrackers(DeviceVelocityPtr vel, int ntracker);
|
||||||
|
|
||||||
extern _X_EXPORT short
|
extern _X_EXPORT BOOL
|
||||||
ProcessVelocityData2D(DeviceVelocityPtr vel, int dx, int dy, int time);
|
ProcessVelocityData2D(DeviceVelocityPtr vel, int dx, int dy, int time);
|
||||||
|
|
||||||
extern _X_EXPORT float
|
extern _X_EXPORT float
|
||||||
|
|
Loading…
Reference in New Issue
Block a user