diff options
author | Keith Packard <keithp@keithp.com> | 2002-10-04 01:44:20 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2002-10-04 01:44:20 +0000 |
commit | 9373d9186b413e1d53200b191816b9143d19c4bf (patch) | |
tree | ba137333ce5639be552d25ead7bc9a4f96a9968a /hw | |
parent | a80e1e5aed07cb57151408b0481f18e2ffb7f146 (diff) |
Fix mouse mapping under reflection
Diffstat (limited to 'hw')
-rw-r--r-- | hw/kdrive/src/kinput.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index 773ca8a42..1ee481613 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -21,7 +21,7 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ -/* $XFree86: xc/programs/Xserver/hw/kdrive/kinput.c,v 1.24 2002/08/15 18:07:57 keithp Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/kdrive/kinput.c,v 1.25 2002/10/03 22:09:04 keithp Exp $ */ #include "kdrive.h" #include "inputstr.h" @@ -387,22 +387,22 @@ KdComputeMouseMatrix (KdMouseMatrix *m, Rotation randr, int width, int height) m->matrix[1][0] = 0; m->matrix[1][1] = y_dir; break; case RR_Rotate_90: - m->matrix[0][0] = 0; m->matrix[0][1] = -y_dir; - m->matrix[1][0] = x_dir; m->matrix[1][1] = 0; + m->matrix[0][0] = 0; m->matrix[0][1] = -x_dir; + m->matrix[1][0] = y_dir; m->matrix[1][1] = 0; break; case RR_Rotate_180: m->matrix[0][0] = -x_dir; m->matrix[0][1] = 0; m->matrix[1][0] = 0; m->matrix[1][1] = -y_dir; break; case RR_Rotate_270: - m->matrix[0][0] = 0; m->matrix[0][1] = y_dir; - m->matrix[1][0] = -x_dir; m->matrix[1][1] = 0; + m->matrix[0][0] = 0; m->matrix[0][1] = x_dir; + m->matrix[1][0] = -y_dir; m->matrix[1][1] = 0; break; } for (i = 0; i < 2; i++) for (j = 0 ; j < 2; j++) if (m->matrix[i][j] < 0) - m->matrix[i][3] = size[j] - 1; + m->matrix[i][2] = size[j] - 1; } static void |