I'm hoping by this weekend I'll send a Tested-by.  I'm also hoping
this fixes the Bamboo increased acceleration issue that occurred with
the newer MT driver.

Any chance it does that?

Chris

On Tue, Dec 7, 2010 at 3:29 PM, Ping Cheng <[email protected]> wrote:
> The physical size of the touch pad is reported in 1000 cm. The
> actual fomula to get points/mm would be:
>
>         MaxTouch/PhyTouch/100
>
> Signed-off-by: Ping Cheng <[email protected]>
> ---
>  src/wcmUSB.c |    9 +++++----
>  1 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/src/wcmUSB.c b/src/wcmUSB.c
> index c53ff06..600ffda 100644
> --- a/src/wcmUSB.c
> +++ b/src/wcmUSB.c
> @@ -495,10 +495,11 @@ int usbWcmGetRanges(InputInfoPtr pInfo)
>
>        if (is_touch && common->wcmTouchResolX && common->wcmMaxTouchX)
>        {
> -               common->wcmTouchResolX = 
> (int)(((double)common->wcmTouchResolX)
> -                        / ((double)common->wcmMaxTouchX) + 0.5);
> -               common->wcmTouchResolY = 
> (int)(((double)common->wcmTouchResolY)
> -                        / ((double)common->wcmMaxTouchY) + 0.5);
> +               /* physical size is reported in 1000 cm */
> +               common->wcmTouchResolX = (int)(((double)common->wcmMaxTouchX)
> +                        / ((double)common->wcmTouchResolX/100.0) + 0.5);
> +               common->wcmTouchResolY = (int)(((double)common->wcmMaxTouchY)
> +                        / ((double)common->wcmTouchResolY/100.0) + 0.5);
>
>                if (!common->wcmTouchResolX || !common->wcmTouchResolY)
>                {
> --
> 1.7.2.3
>
>
> ------------------------------------------------------------------------------
> What happens now with your Lotus Notes apps - do you make another costly
> upgrade, or settle for being marooned without product support? Time to move
> off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
> use, and manage than apps on traditional platforms. Sign up for the Lotus
> Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
> _______________________________________________
> Linuxwacom-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
>

------------------------------------------------------------------------------
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to