On Tue, Feb 01, 2011 at 01:36:11PM -0800, Ping Cheng wrote:
> Signed-off-by: Ping Cheng <[email protected]>
please, when sending updated patches amend the subject line to something
like
[PATCH v2] blah blah
plus a mini changelog before the diff. I get a lot of patches and usually
don't process them immediately. trying to dig out with version of a patch is
the most current one can be quite tedious. and especially for longer patches
(not in this case) it's quite hard to figure out what has changed between
two revisions.
this patch: applied, thanks.
Cheers,
Peter
> ---
> src/wcmISDV4.c | 15 +++++++++------
> 1 files changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/src/wcmISDV4.c b/src/wcmISDV4.c
> index 7080f5b..54d47ec 100644
> --- a/src/wcmISDV4.c
> +++ b/src/wcmISDV4.c
> @@ -31,6 +31,10 @@
>
> #define RESET_RELATIVE(ds) do { (ds).relwheel = 0; } while (0)
>
> +/* resolution in points/m */
> +#define ISDV4_PEN_RESOLUTION 100000
> +#define ISDV4_TOUCH_RESOLUTION 10000
> +
> /* ISDV4 init process
> This process is the same for other backends (i.e. USB).
>
> @@ -53,7 +57,6 @@
>
> */
>
> -
> typedef struct {
> /* Counter for dependent devices. We can only send one QUERY command to
> the tablet and we must not send the SAMPLING command until the last
> @@ -317,10 +320,10 @@ static void isdv4InitISDV4(WacomCommonPtr common, const
> char* id, float version)
> /* length of a packet */
> common->wcmPktLength = ISDV4_PKGLEN_TPCPEN;
>
> - /* digitizer X resolution in points/inch */
> - common->wcmResolX = 2540;
> - /* digitizer Y resolution in points/inch */
> - common->wcmResolY = 2540;
> + /* digitizer X resolution in points/m */
> + common->wcmResolX = ISDV4_PEN_RESOLUTION;
> + /* digitizer Y resolution in points/m */
> + common->wcmResolY = ISDV4_PEN_RESOLUTION;
>
> /* tilt disabled */
> common->wcmFlags &= ~TILT_ENABLED_FLAG;
> @@ -510,7 +513,7 @@ static int isdv4GetRanges(InputInfoPtr pInfo)
> (1 << reply.panel_resolution);
>
> if (reply.panel_resolution)
> - common->wcmTouchResolX = common->wcmTouchResolY = 10;
> + common->wcmTouchResolX = common->wcmTouchResolY =
> ISDV4_TOUCH_RESOLUTION;
>
> common->wcmVersion = reply.version;
> ret = Success;
> --
> 1.7.3.5
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Linuxwacom-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel