Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2017 16:53:03 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315715 - head/usr.sbin/bhyve
Message-ID:  <201703221653.v2MGr39M007730@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grehan
Date: Wed Mar 22 16:53:03 2017
New Revision: 315715
URL: https://svnweb.freebsd.org/changeset/base/315715

Log:
  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

Modified:
  head/usr.sbin/bhyve/usb_mouse.c

Modified: head/usr.sbin/bhyve/usb_mouse.c
==============================================================================
--- head/usr.sbin/bhyve/usb_mouse.c	Wed Mar 22 15:46:31 2017	(r315714)
+++ head/usr.sbin/bhyve/usb_mouse.c	Wed Mar 22 16:53:03 2017	(r315715)
@@ -284,7 +284,7 @@ umouse_event(uint8_t button, int x, int 
 
 	/* 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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703221653.v2MGr39M007730>