[PATCH 01/20] dix: fix typo in direction calculation
Peter Hutterer
peter.hutterer at who-t.net
Tue Apr 19 23:28:10 PDT 2011
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
dix/ptrveloc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c
index ccd445e..c40fbc0 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;
--
1.7.4.4
More information about the xorg-devel
mailing list