summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPelle Johansson <pelle@morth.org>2011-08-14 17:44:40 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-08-14 17:47:02 -0700
commitac2c307f4716ebd3e955c004ceec9f4c029401a0 (patch)
treee88a9162ff5dcacfbbafe3d3bd5ec158200dfd9b
parent4020cab88f5cf3164fc83cf912f94f288aa5a45d (diff)
XQuartz: Initialize darwin pointer valuators
This fixes a regression introduced by: 633b81e8ba09cc6a1ea8b43f323874fda2cf0bde http://xquartz.macosforge.org/trac/ticket/498 Signed-off-by: Pelle Johansson <pelle@morth.org> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--hw/xquartz/darwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xquartz/darwin.c b/hw/xquartz/darwin.c
index f19d7bf30..b483000f8 100644
--- a/hw/xquartz/darwin.c
+++ b/hw/xquartz/darwin.c
@@ -322,8 +322,8 @@ static int DarwinMouseProc(DeviceIntPtr pPointer, int what) {
(PtrCtrlProcPtr)NoopDDA,
GetMotionHistorySize(), NAXES,
axes_labels);
-// InitValuatorAxisStruct(pPointer, 0, 0, XQUARTZ_VALUATOR_LIMIT, 1, 0, 1, Absolute);
-// InitValuatorAxisStruct(pPointer, 1, 0, XQUARTZ_VALUATOR_LIMIT, 1, 0, 1, Absolute);
+ InitValuatorAxisStruct(pPointer, 0, axes_labels[0], NO_AXIS_LIMITS, NO_AXIS_LIMITS, 0, 0, 0, Absolute);
+ InitValuatorAxisStruct(pPointer, 1, axes_labels[1], NO_AXIS_LIMITS, NO_AXIS_LIMITS, 0, 0, 0, Absolute);
break;
case DEVICE_ON:
pPointer->public.on = TRUE;