Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons Initialize the W axis value on open as is alr...
details: https://anonhg.NetBSD.org/src/rev/53b0879d670a
branches: trunk
changeset: 769487:53b0879d670a
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Sep 11 19:19:19 2011 +0000
description:
Initialize the W axis value on open as is already done for the other axes.
diffstat:
sys/dev/wscons/wsmouse.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r f34534b52831 -r 53b0879d670a sys/dev/wscons/wsmouse.c
--- a/sys/dev/wscons/wsmouse.c Sun Sep 11 19:18:27 2011 +0000
+++ b/sys/dev/wscons/wsmouse.c Sun Sep 11 19:19:19 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsmouse.c,v 1.62 2009/01/15 04:22:11 yamt Exp $ */
+/* $NetBSD: wsmouse.c,v 1.63 2011/09/11 19:19:19 jakllsch Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -104,7 +104,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.62 2009/01/15 04:22:11 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.63 2011/09/11 19:19:19 jakllsch Exp $");
#include "wsmouse.h"
#include "wsdisplay.h"
@@ -143,6 +143,7 @@
#define INVALID_X INT_MAX
#define INVALID_Y INT_MAX
#define INVALID_Z INT_MAX
+#define INVALID_W INT_MAX
struct wsmouse_softc {
struct wsevsrc sc_base;
@@ -621,6 +622,7 @@
sc->sc_x = INVALID_X;
sc->sc_y = INVALID_Y;
sc->sc_z = INVALID_Z;
+ sc->sc_z = INVALID_W;
/* Stop button repeating when messing with the device. */
if (sc->sc_repeat_button != -1) {
Home |
Main Index |
Thread Index |
Old Index