diff options
author | Eric Anholt <anholt@freebsd.org> | 2005-05-04 04:14:58 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2005-05-04 04:14:58 +0000 |
commit | 0367a3a65a30fa461a1f2c4facf28821dbf10a77 (patch) | |
tree | b0e2eb68633fa3edf007e315147c633b0e8a1ab9 | |
parent | b538c125e4cd103c743ed26ec4d288d4a5b35b24 (diff) |
Port X.Org to FreeBSD/powerpc. This makes a bit of math for sysmouse inXORG-6_8_99_6
mouse.c explicitly signed, avoiding the need for -fsigned-chars. (Peter
Grehan, grehan at FreeBSD dot org)
-rw-r--r-- | src/mouse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mouse.c b/src/mouse.c index b11d1f4..923a272 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c,v 1.5 2004/10/17 22:45:57 agd5f Exp $ */ +/* $XdotOrg: xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c,v 1.6 2005/04/20 12:25:34 daniels Exp $ */ /* $XFree86: xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c,v 1.79 2003/11/03 05:11:48 tsi Exp $ */ /* * @@ -1541,8 +1541,8 @@ MouseReadInput(InputInfoPtr pInfo) case PROT_SYSMOUSE: /* sysmouse */ buttons = (~pBuf[0]) & 0x07; - dx = (char)(pBuf[1]) + (char)(pBuf[3]); - dy = - ((char)(pBuf[2]) + (char)(pBuf[4])); + dx = (signed char)(pBuf[1]) + (signed char)(pBuf[3]); + dy = - ((signed char)(pBuf[2]) + (signed char)(pBuf[4])); /* FreeBSD sysmouse sends additional data bytes */ if (pMse->protoPara[4] >= 8) { /* |