summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@openbsd.org>2009-11-23 22:10:29 +0000
committerMatthieu Herrb <matthieu@openbsd.org>2009-11-23 22:10:29 +0000
commit5a2d5471f07dbea1c04103342d49b05b14136fbc (patch)
tree9b19c58e806ea64796eccda277a16cab4435a593
parentd24eae2d044a5557e99cce445ec40263c77f996f (diff)
conversion_proc is not used anymore since Xserver 1.5.
Don't define one that's never called.
-rw-r--r--src/ws.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/src/ws.c b/src/ws.c
index b6c6e84..c7e18ed 100644
--- a/src/ws.c
+++ b/src/ws.c
@@ -78,8 +78,6 @@ static int wsChangeControl(InputInfoPtr, xDeviceCtl *);
static int wsSwitchMode(ClientPtr, DeviceIntPtr, int);
static Bool wsOpen(InputInfoPtr);
static void wsClose(InputInfoPtr);
-static Bool wsConvert(InputInfoPtr, int, int, int, int, int, int, int, int,
- int *, int *);
static void wsControlProc(DeviceIntPtr , PtrCtrl *);
@@ -334,7 +332,7 @@ wsPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
pInfo->read_input = wsReadInput;
pInfo->control_proc = wsChangeControl;
pInfo->switch_mode = wsSwitchMode;
- pInfo->conversion_proc = wsConvert;
+ pInfo->conversion_proc = NULL;
pInfo->reverse_conversion_proc = NULL;
pInfo->private = priv;
pInfo->old_x = -1;
@@ -780,42 +778,6 @@ wsClose(InputInfoPtr pInfo)
pInfo->fd = -1;
}
-static Bool
-wsConvert(InputInfoPtr pInfo, int first, int num,
- int v0, int v1, int v2, int v3, int v4, int v5,
- int *x, int *y)
-{
- WSDevicePtr priv = (WSDevicePtr) pInfo->private;
- if (first != 0 || num != 2) {
- return FALSE;
- }
-
- DBG(3, ErrorF("WSConvert: v0(%d), v1(%d)\n", v0, v1));
-
- if (priv->swap_axes != 0) {
- *x = xf86ScaleAxis(v1, 0, priv->screen_width - 1,
- priv->min_y, priv->max_y);
- *y = xf86ScaleAxis(v0, 0, priv->screen_height - 1,
- priv->min_x, priv->max_x);
- } else {
- *x = xf86ScaleAxis(v0, 0, priv->screen_width - 1,
- priv->min_x, priv->max_x);
- *y = xf86ScaleAxis(v1, 0, priv->screen_height - 1,
- priv->min_y, priv->max_y);
- }
-
- /*
- * Need to check if still on the correct screen.
- * This call is here so that this work can be done after
- * calib and before posting the event.
- */
- xf86XInputSetScreen(pInfo, priv->screen_no, *x, *y);
-
- DBG(3, ErrorF("WSConvert: x(%d), y(%d)\n", *x, *y));
-
- return TRUE;
-}
-
static void
wsControlProc(DeviceIntPtr device, PtrCtrl *ctrl)
{