diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-04-20 13:14:11 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-04-21 13:47:42 +1000 |
commit | 8c528c667da7c7fba0ba07973a06b2d4613fbf70 (patch) | |
tree | fd09b41c62e24c60ab33ee26ef6ce65c5a886cdd | |
parent | 47f8cba6f3ae24e5dcdc4e348bdaaaf00d25a91c (diff) |
dix: fix typo in direction calculation
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Simon Thum <simon.thum@gmx.de>
-rw-r--r-- | dix/ptrveloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c index ccd445e86..c40fbc0d6 100644 --- a/dix/ptrveloc.c +++ b/dix/ptrveloc.c @@ -443,7 +443,7 @@ DoGetDirection(int dx, int dy){ float r; int i1, i2; /* on insignificant mickeys, flag 135 degrees */ - if(abs(dx) < 2 && abs(dy < 2)){ + if(abs(dx) < 2 && abs(dy) < 2){ /* first check diagonal cases */ if(dx > 0 && dy > 0) return 4+8+16; |