On Thu, May 12, 2011 at 02:29:15PM -0500, Favux ... wrote:
> Responding to reports involving the recent Ubuntu release discovered
> cw and ccw have been reversed since the "Rework rotation and scaling
> into tablet areas." commit:
> http://linuxwacom.git.sourceforge.net/git/gitweb.cgi?p=linuxwacom/xf86-input-wacom;a=commit;h=19c24dc4e852bae384f16411d5f59add487be5f0
> 
> This patch returns cw and ccw to the expected behavior.
> 

applied, thanks.

Cheers,
  Peter

> From 03d6d3d64acf838ed6f91743a6baf1e8166d4174 Mon Sep 17 00:00:00 2001
> From: David Foley <[email protected]>
> Date: Thu, 12 May 2011 14:19:28 -0500
> Subject: [PATCH] wcmCommon.c:  fix cw and ccw swap
> 
> Return cw and ccw to expected behavior.
> 
> Tested-by: Buran Ayuthia <[email protected]>
> Signed-off-by: David Foley <[email protected]>
> ---
>  src/wcmCommon.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/wcmCommon.c b/src/wcmCommon.c
> index 7f8dfb1..c8aa9e4 100644
> --- a/src/wcmCommon.c
> +++ b/src/wcmCommon.c
> @@ -479,9 +479,9 @@ void wcmRotateAndScaleCoordinates(InputInfoPtr pInfo, 
> int* x, int* y)
>                                  axis_x->max_value, axis_x->min_value);
>       }
>  
> -     if (common->wcmRotate == ROTATE_CCW)
> +     if (common->wcmRotate == ROTATE_CW)
>               *y = axis_y->max_value - (*y - axis_y->min_value);
> -     else if (common->wcmRotate == ROTATE_CW)
> +     else if (common->wcmRotate == ROTATE_CCW)
>               *x = axis_x->max_value - (*x - axis_x->min_value);
>       else if (common->wcmRotate == ROTATE_HALF)
>       {
> -- 
> 1.7.1

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to