Changeset 47574 in vbox
- Timestamp:
- Aug 7, 2013 10:04:32 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 87774
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/UsbMouse.cpp
r47571 r47574 732 732 /* .bNumDescriptors = */ 1, 733 733 /* .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) 735 736 }; 736 737 … … 1197 1198 pReport->m.fButtons, cbCopy)); 1198 1199 break; 1200 default: 1201 AssertFailed(); /* Unexpected here. */ 1202 break; 1199 1203 } 1200 1204 … … 1468 1472 for (i = 0; i < cContacts; i++) 1469 1473 { 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); 1474 1480 paNewContacts[i].status = MT_CONTACT_S_DIRTY; 1475 1481 paNewContacts[i].oldId = 0; /* Not used. */
Note:
See TracChangeset
for help on using the changeset viewer.