On Tue, Dec 07, 2010 at 01:29:36PM -0800, Ping Cheng wrote: > The physical size of the touch pad is reported in 1000 cm. The
sorry, I'm confused. it's reported in what? 1000 units/cm? Cheers, Peter > 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
