summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemo Firszt <przemo@firszt.eu>2009-12-17 20:24:38 +0000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-12-21 10:07:56 +1000
commitb7e90296453b536b00a2857d978fd53a72d77c0b (patch)
treee73740767d7852ab793c52870645f95eeb05ed2c
parent463c5d1effa3505d54a5a520d143919ad1befc69 (diff)
downloadxf86-input-wacom-b7e90296453b536b00a2857d978fd53a72d77c0b.tar.gz
Remove redundant xf86WcmMappingFactor calls
No need to call xf86WcmMappingFactor before xf86WcmInitialCoordinates because xf86WcmInitialCoordinates calls it anyway. Signed-off-by: Przemo Firszt <przemo@firszt.eu> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/wcmCommon.c1
-rw-r--r--src/wcmXCommand.c3
2 files changed, 0 insertions, 4 deletions
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index 434715d..ef8c5cc 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -1926,7 +1926,6 @@ static void rotateOneTool(WacomDevicePtr priv)
area->bottomY = priv->bottomY = oldMaxY - tmpTopY;
break;
}
- xf86WcmMappingFactor(priv->local);
xf86WcmInitialCoordinates(priv->local, 0);
xf86WcmInitialCoordinates(priv->local, 1);
diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c
index 563a42d..698c280 100644
--- a/src/wcmXCommand.c
+++ b/src/wcmXCommand.c
@@ -84,7 +84,6 @@ int xf86WcmDevSwitchModeCall(LocalDevicePtr local, int mode)
{
priv->flags |= ABSOLUTE_FLAG;
xf86ReplaceStrOption(local->options, "Mode", "Absolute");
- xf86WcmMappingFactor(local);
xf86WcmInitialCoordinates(local, 0);
xf86WcmInitialCoordinates(local, 1);
}
@@ -92,7 +91,6 @@ int xf86WcmDevSwitchModeCall(LocalDevicePtr local, int mode)
{
priv->flags &= ~ABSOLUTE_FLAG;
xf86ReplaceStrOption(local->options, "Mode", "Relative");
- xf86WcmMappingFactor(local);
xf86WcmInitialCoordinates(local, 0);
xf86WcmInitialCoordinates(local, 1);
}
@@ -345,7 +343,6 @@ int xf86WcmSetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop,
priv->topY = values[1];
priv->bottomX = values[2];
priv->bottomY = values[3];
- xf86WcmMappingFactor(local);
xf86WcmInitialCoordinates(local, 0);
xf86WcmInitialCoordinates(local, 1);
}