Don't change the axis range at runtime, clients cannot cope with that and will process data in a wrong manner. Rotation needs to happen inside the driver, with the rotated axis ranges being squashed into the respective axis ranges announced at startup.
Note: This temporarily breaks tablet rotation until the real scaling has been set up. Signed-off-by: Peter Hutterer <[email protected]> --- src/wcmCommon.c | 2 -- src/xf86Wacom.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index 6be88db..aeb6b03 100644 --- a/src/wcmCommon.c +++ b/src/wcmCommon.c @@ -1530,8 +1530,6 @@ static void rotateOneTool(WacomDevicePtr priv) area->bottomY = priv->bottomY = oldMaxY - tmpTopY; break; } - wcmInitialCoordinates(priv->pInfo, 0); - wcmInitialCoordinates(priv->pInfo, 1); } diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c index 6244ec0..5ef9dd8 100644 --- a/src/xf86Wacom.c +++ b/src/xf86Wacom.c @@ -507,6 +507,9 @@ static int wcmDevInit(DeviceIntPtr pWcm) return FALSE; } + wcmInitialCoordinates(priv->pInfo, 0); + wcmInitialCoordinates(priv->pInfo, 1); + /* Rotation rotates the Max X and Y */ wcmRotateTablet(pInfo, common->wcmRotate); -- 1.7.2.3 ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
