Module Name: xsrc
Committed By: uwe
Date: Sun Nov 21 21:52:59 UTC 2021
Modified Files:
xsrc/external/mit/xf86-input-ws/dist/src: ws.c
Log Message:
wsReadInput: fix pasto, wsTranslate absolute y position to screen height,
not width. While here, use consistent layout for both calls.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 xsrc/external/mit/xf86-input-ws/dist/src/ws.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xf86-input-ws/dist/src/ws.c
diff -u xsrc/external/mit/xf86-input-ws/dist/src/ws.c:1.14 xsrc/external/mit/xf86-input-ws/dist/src/ws.c:1.15
--- xsrc/external/mit/xf86-input-ws/dist/src/ws.c:1.14 Fri Oct 8 23:30:17 2021
+++ xsrc/external/mit/xf86-input-ws/dist/src/ws.c Sun Nov 21 21:52:59 2021
@@ -705,8 +705,7 @@ wsReadInput(InputInfoPtr pInfo)
break;
ax = event->value;
if (priv->translateAbs)
- ax = wsTranslate(pInfo,
- priv->lastScreenWidth,
+ ax = wsTranslate(pInfo, priv->lastScreenWidth,
priv->min_x, priv->max_x, ax);
if (priv->inv_x)
ax = priv->max_x - ax + priv->min_x;
@@ -715,7 +714,7 @@ wsReadInput(InputInfoPtr pInfo)
DBG(4, ErrorF("Absolute Y %d\n", event->value));
ay = event->value;
if (priv->translateAbs)
- ay = wsTranslate(pInfo, priv->lastScreenWidth,
+ ay = wsTranslate(pInfo, priv->lastScreenHeight,
priv->min_y, priv->max_y, ay);
if (priv->inv_y)
ay = priv->max_y - ay + priv->min_y;