mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 23:30:05 +01:00
XQuartz: Fix a brain-o array indexing problem
/bop Peter
This commit is contained in:
parent
fd1adc21a9
commit
29b2d9cdf5
1 changed files with 3 additions and 3 deletions
|
|
@ -290,8 +290,8 @@ static int DarwinMouseProc(DeviceIntPtr pPointer, int what) {
|
|||
#define NAXES 2
|
||||
// 7 buttons: left, right, middle, then four scroll wheel "buttons"
|
||||
CARD8 map[NBUTTONS + 1] = {0, 1, 2, 3, 4, 5, 6, 7};
|
||||
Atom btn_labels[NAXES] = {0};
|
||||
Atom axes_labels[NBUTTONS] = {0};
|
||||
Atom btn_labels[NBUTTONS] = {0};
|
||||
Atom axes_labels[NAXES] = {0};
|
||||
|
||||
switch (what) {
|
||||
case DEVICE_INIT:
|
||||
|
|
@ -340,8 +340,8 @@ static int DarwinTabletProc(DeviceIntPtr pPointer, int what) {
|
|||
#define NBUTTONS 3
|
||||
#define NAXES 5
|
||||
CARD8 map[NBUTTONS + 1] = {0, 1, 2, 3};
|
||||
Atom axes_labels[NAXES] = {0};
|
||||
Atom btn_labels[NBUTTONS] = {0};
|
||||
Atom axes_labels[NAXES] = {0};
|
||||
|
||||
switch (what) {
|
||||
case DEVICE_INIT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue