VirtualBox

Changeset 47576 in vbox for trunk/src/VBox


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

Devices,Main: another multi-touch build fix.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r47574 r47576  
    14741474        uint32_t u32Lo = RT_LO_U32(pau64Contacts[i]);
    14751475        uint32_t u32Hi = RT_HI_U32(pau64Contacts[i]);
    1476         paNewContacts[i].x      = RT_LO_U16(u32Lo);
    1477         paNewContacts[i].y      = RT_HI_U16(u32Lo);
     1476        paNewContacts[i].x      = (uint16_t)u32Lo;
     1477        paNewContacts[i].y      = (uint16_t)(u32Lo >> 16);
    14781478        paNewContacts[i].id     = RT_BYTE1(u32Hi);
    14791479        paNewContacts[i].flags  = RT_BYTE2(u32Hi) & (MT_CONTACT_F_IN_CONTACT | MT_CONTACT_F_IN_RANGE);
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r47575 r47576  
    731731                uint32_t u32Lo = RT_LO_U32(pau64Contacts[i]);
    732732                uint32_t u32Hi = RT_HI_U32(pau64Contacts[i]);
    733                 int32_t x = (int16_t)RT_LO_U16(u32Lo);
    734                 int32_t y = (int16_t)RT_HI_U16(u32Lo);
     733                int32_t x = (int16_t)u32Lo;
     734                int32_t y = (int16_t)(u32Lo >> 16);
    735735                uint8_t contactId =  RT_BYTE1(u32Hi);
    736736                bool fInContact   = (RT_BYTE2(u32Hi) & 0x1) != 0;
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