Changeset 31415 in vbox for trunk/src/VBox/Additions/x11/vboxmouse/xorg71/mouse.c
- Timestamp:
- Aug 5, 2010 3:49:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/xorg71/mouse.c
r29712 r31415 489 489 int target; /* target button */ 490 490 int lockM,targetM; /* bitmasks for drag lock, target */ 491 int i, j; /* indexes */491 int k, j; /* indexes */ 492 492 char *s1; /* parse input string */ 493 493 DragLockPtr pLock; … … 553 553 554 554 /* for each nibble */ 555 for ( i = 0; i < NIB_COUNT; i++) {555 for (k = 0; k < NIB_COUNT; k++) { 556 556 /* for each possible set of bits for that nibble */ 557 557 for (j = 0; j < NIB_SIZE; j++) { … … 569 569 * if otherbits =0 then only 1 bit set 570 570 * so j=fM 571 * nib_table[ i][fM] already calculated if fM has571 * nib_table[k][fM] already calculated if fM has 572 572 * only 1 bit set. 573 * nib_table[ i][j] has already been filled in573 * nib_table[k][j] has already been filled in 574 574 * by previous loop. otherwise 575 * otherbits < j so nibtable[ i][otherbits]575 * otherbits < j so nibtable[k][otherbits] 576 576 * has already been calculated. 577 577 */ 578 578 if (otherbits) 579 pLock->nib_table[ i][j] =580 pLock->nib_table[ i][fM] |581 pLock->nib_table[ i][otherbits];579 pLock->nib_table[k][j] = 580 pLock->nib_table[k][fM] | 581 pLock->nib_table[k][otherbits]; 582 582 583 583 } … … 3669 3669 case AUTOPROBE_SWITCH_PROTOCOL: 3670 3670 { 3671 MouseProtocolID prot o;3671 MouseProtocolID prot; 3672 3672 void *defaults; 3673 3673 AP_DBG(("State SWITCH_PROTOCOL\n")); 3674 prot o= mPriv->protoList[mPriv->protocolID++];3675 if (prot o== PROT_UNKNOWN)3674 prot = mPriv->protoList[mPriv->protocolID++]; 3675 if (prot == PROT_UNKNOWN) 3676 3676 mPriv->autoState = AUTOPROBE_SWITCHSERIAL; 3677 else if (!(defaults = GetProtocol(prot o)->defaults)3677 else if (!(defaults = GetProtocol(prot)->defaults) 3678 3678 || (mPriv->serialDefaultsNum == -1 3679 3679 && (defaults == msDefaults)) … … 3682 3682 == defaults)) { 3683 3683 AP_DBG(("Changing Protocol to %s\n", 3684 ProtocolIDToName(prot o)));3685 SetMouseProto(pMse,prot o);3684 ProtocolIDToName(prot))); 3685 SetMouseProto(pMse,prot); 3686 3686 FlushButtons(pMse); 3687 3687 RESET_VALIDATION;
Note:
See TracChangeset
for help on using the changeset viewer.