[PATCH 01/20] dix: fix typo in direction calculation

Simon Thum simon.thum at gmx.de
Wed Apr 20 13:53:44 PDT 2011


On 04/20/2011 08:28 AM, Peter Hutterer wrote:
> 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;
Reviewed-by: Simon Thum <simon.thum at gmx.de>

Cheers,

Simon


More information about the xorg-devel mailing list