VirtualBox

Changeset 47574 in vbox


Ignore:
Timestamp:
Aug 7, 2013 10:04:32 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87774
Message:

Devices: multi-touch build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/UsbMouse.cpp

    r47571 r47574  
    732732    /* .bNumDescriptors = */        1,
    733733    /* .bDescriptorType = */        0x22,       /* Report */
    734     /* .wDescriptorLength = */      RT_LO_U8(sizeof(g_UsbHidMTReportDesc)), RT_HI_U8(sizeof(g_UsbHidMTReportDesc))
     734    /* .wDescriptorLength = */      (uint8_t)(sizeof(g_UsbHidMTReportDesc) & 0xFF),
     735                                    (uint8_t)((sizeof(g_UsbHidMTReportDesc) >> 8) & 0xFF)
    735736};
    736737
     
    11971198                 pReport->m.fButtons, cbCopy));
    11981199        break;
     1200    default:
     1201        AssertFailed(); /* Unexpected here. */
     1202        break;
    11991203    }
    12001204
     
    14681472    for (i = 0; i < cContacts; i++)
    14691473    {
    1470         paNewContacts[i].x      = RT_LO_U16(RT_LO_U32(pau64Contacts[i]));
    1471         paNewContacts[i].y      = RT_HI_U16(RT_LO_U32(pau64Contacts[i]));
    1472         paNewContacts[i].id     = RT_BYTE1(RT_HI_U32(pau64Contacts[i]));
    1473         paNewContacts[i].flags  = RT_BYTE2(RT_HI_U32(pau64Contacts[i])) & (MT_CONTACT_F_IN_CONTACT | MT_CONTACT_F_IN_RANGE);
     1474        uint32_t u32Lo = RT_LO_U32(pau64Contacts[i]);
     1475        uint32_t u32Hi = RT_HI_U32(pau64Contacts[i]);
     1476        paNewContacts[i].x      = RT_LO_U16(u32Lo);
     1477        paNewContacts[i].y      = RT_HI_U16(u32Lo);
     1478        paNewContacts[i].id     = RT_BYTE1(u32Hi);
     1479        paNewContacts[i].flags  = RT_BYTE2(u32Hi) & (MT_CONTACT_F_IN_CONTACT | MT_CONTACT_F_IN_RANGE);
    14741480        paNewContacts[i].status = MT_CONTACT_S_DIRTY;
    14751481        paNewContacts[i].oldId  = 0; /* Not used. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette