On Sun, Jan 16, 2011 at 7:59 PM, <[email protected]> wrote: > From: Chris Bagwell <[email protected]> > > Signed-off-by: Chris Bagwell <[email protected]> > Reviewed-by: Peter Hutterer <[email protected]> > --- > src/wcmCommon.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/src/wcmCommon.c b/src/wcmCommon.c > index 39a211d..f060a7b 100644 > --- a/src/wcmCommon.c > +++ b/src/wcmCommon.c > @@ -98,6 +98,11 @@ void wcmMappingFactor(InputInfoPtr pInfo) > priv->bottomX, priv->bottomY, priv->sizeX, priv->sizeY, > priv->maxWidth, priv->maxHeight); > > + /* maxWidth and maxHeight are size of screen. So factorX and > + * factorY are screen units per tool units and is used > + * later to scale tool movement on tablet to cursor movement > + * on the scree.
nitpick. Missing "n" :). Ping > + */ > priv->factorX = (double)priv->maxWidth / (double)priv->sizeX; > priv->factorY = (double)priv->maxHeight / (double)priv->sizeY; > DBG(2, priv, "X factor = %.3g, Y factor = %.3g\n", > -- > 1.7.3.4 > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Linuxwacom-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel > ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
