VirtualBox

Changeset 35989 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Feb 15, 2011 7:55:27 PM (14 years ago)
Author:
vboxsync
Message:

Main/MouseImpl, Devices/VMMDev, pdmif: fixed a number of placed where absolute mouse positions were passed unsigned

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MouseImpl.h

    r35871 r35989  
    9999    HRESULT reportAbsEventToMouseDev(uint32_t mouseXAbs, uint32_t mouseYAbs,
    100100                                 int32_t dz, int32_t dw, uint32_t fButtons);
    101     HRESULT reportAbsEventToVMMDev(uint32_t mouseXAbs, uint32_t mouseYAbs);
    102     HRESULT reportAbsEvent(uint32_t mouseXAbs, uint32_t mouseYAbs,
     101    HRESULT reportAbsEventToVMMDev(int32_t mouseXAbs, int32_t mouseYAbs);
     102    HRESULT reportAbsEvent(int32_t mouseXAbs, int32_t mouseYAbs,
    103103                           int32_t dz, int32_t dw, uint32_t fButtons,
    104104                           bool fUsesVMMDevEvent);
     
    123123
    124124    uint32_t mfVMMDevGuestCaps;  /** We cache this to avoid access races */
    125     uint32_t mcLastAbsX;
    126     uint32_t mcLastAbsY;
     125    int32_t mcLastAbsX;
     126    int32_t mcLastAbsY;
    127127    uint32_t mfLastButtons;
    128128
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r35871 r35989  
    349349 * @returns   COM status code
    350350 */
    351 HRESULT Mouse::reportAbsEventToVMMDev(uint32_t mouseXAbs, uint32_t mouseYAbs)
     351HRESULT Mouse::reportAbsEventToVMMDev(int32_t mouseXAbs, int32_t mouseYAbs)
    352352{
    353353    VMMDev *pVMMDev = mParent->getVMMDev();
     
    375375 * @returns   COM status code
    376376 */
    377 HRESULT Mouse::reportAbsEvent(uint32_t mouseXAbs, uint32_t mouseYAbs,
     377HRESULT Mouse::reportAbsEvent(int32_t mouseXAbs, int32_t mouseYAbs,
    378378                              int32_t dz, int32_t dw, uint32_t fButtons,
    379379                              bool fUsesVMMDevEvent)
     
    536536    HRESULT rc = convertDisplayRes(x, y, &mouseXAbs, &mouseYAbs, &fValid);
    537537    if (FAILED(rc)) return rc;
    538 
    539     /** @todo multi-monitor Windows guests expect this to be unbounded.
    540      * Understand the issues involved and fix for the rest. */
    541     /* if (mouseXAbs > 0xffff)
    542         mouseXAbs = mcLastAbsX;
    543     if (mouseYAbs > 0xffff)
    544         mouseYAbs = mcLastAbsY; */
    545538
    546539    fButtons = mouseButtonsToPDM(buttonState);
Note: See TracChangeset for help on using the changeset viewer.

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