From b9c1cdd190192c5cfa53461c543d8d0b121c42ad Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Wed, 22 Mar 2017 16:53:03 +0000 Subject: [PATCH] This fixes a typo in bhyve's USB mouse emulation. There is no behavioral difference, as it's just swapping out the name of two identically-valued constants. Submitted by: Vicki Pfau (vi AT endrift.com) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D9597 --- usr.sbin/bhyve/usb_mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/usb_mouse.c b/usr.sbin/bhyve/usb_mouse.c index 633fc57906e0..e9fc77ed8a7e 100644 --- a/usr.sbin/bhyve/usb_mouse.c +++ b/usr.sbin/bhyve/usb_mouse.c @@ -284,7 +284,7 @@ umouse_event(uint8_t button, int x, int y, void *arg) /* scale coords to mouse resolution */ sc->um_report.x = MOUSE_MAX_X * x / gc->width; - sc->um_report.y = MOUSE_MAX_X * y / gc->height; + sc->um_report.y = MOUSE_MAX_Y * y / gc->height; sc->newdata = 1; pthread_mutex_unlock(&sc->mtx);