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>
This commit is contained in:
parent
47f8cba6f3
commit
8c528c667d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user