Commit 28d19168 authored by Keith Packard's avatar Keith Packard
Browse files

Uninitialized mouse matrix elements

parent dd7c85f1
......@@ -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.25 2002/10/03 22:09:04 keithp Exp $ */
/* $XFree86: xc/programs/Xserver/hw/kdrive/kinput.c,v 1.26 2002/10/04 01:44:20 keithp Exp $ */
#include "kdrive.h"
#include "inputstr.h"
......@@ -403,6 +403,8 @@ KdComputeMouseMatrix (KdMouseMatrix *m, Rotation randr, int width, int height)
for (j = 0 ; j < 2; j++)
if (m->matrix[i][j] < 0)
m->matrix[i][2] = size[j] - 1;
else
m->matrix[i][2] = 0;
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment