Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xf86-input-ws/dist/src wsReadInput: fix pasto...
details: https://anonhg.NetBSD.org/xsrc/rev/a1993430b9fa
branches: trunk
changeset: 10816:a1993430b9fa
user: uwe <uwe%NetBSD.org@localhost>
date: Sun Nov 21 21:52:59 2021 +0000
description:
wsReadInput: fix pasto, wsTranslate absolute y position to screen height,
not width. While here, use consistent layout for both calls.
diffstat:
external/mit/xf86-input-ws/dist/src/ws.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 0cc15100a101 -r a1993430b9fa external/mit/xf86-input-ws/dist/src/ws.c
--- a/external/mit/xf86-input-ws/dist/src/ws.c Fri Nov 12 19:01:19 2021 +0000
+++ b/external/mit/xf86-input-ws/dist/src/ws.c Sun Nov 21 21:52:59 2021 +0000
@@ -705,8 +705,7 @@
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index