VirtualBox

Changeset 36150 in vbox


Ignore:
Timestamp:
Mar 3, 2011 2:38:13 PM (14 years ago)
Author:
vboxsync
Message:

Main/Mouse: mouse handling fix found by the testcase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r35989 r36150  
    485485            return rc;
    486486
    487         *pcX = displayWidth ? ((x - 1) * 0xFFFF) / displayWidth: 0;
    488         *pcY = displayHeight ? ((y - 1) * 0xFFFF) / displayHeight: 0;
     487        *pcX = displayWidth ? ((x - 1) * 0xFFFF) / (LONG) displayWidth: 0;
     488        *pcY = displayHeight ? ((y - 1) * 0xFFFF) / (LONG) displayHeight: 0;
    489489    }
    490490    else
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