VirtualBox

Changeset 47798 in vbox


Ignore:
Timestamp:
Aug 16, 2013 10:41:55 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88059
Message:

MouseImpl: corrected touch event range check.

File:
1 edited

Legend:

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

    r47795 r47798  
    739739            int32_t y2 = y1 + cHeight;
    740740
    741             LogRel3(("%s: screen %d,%d %d,%d\n",
    742                      __FUNCTION__, x1, y1, x2, y2));
     741            LogRel3(("%s: screen [%d] %d,%d %d,%d\n",
     742                     __FUNCTION__, uScreenId, x1, y1, x2, y2));
    743743
    744744            LONG i;
     
    756756                         __FUNCTION__, i, x, y, contactId, fInContact, fInRange));
    757757
    758                 /* Screen dimensions are 0,0 width, height, that is x2,y2 are exclusive,
    759                  * while coords are inclusive.
     758                /* x1,y1 are inclusive and x2,y2 are exclusive,
     759                 * while x,y start from 1 and are inclusive.
    760760                 */
    761                 if (x < x1 || x >= x2 || y < y1 || y >= y2)
     761                if (x <= x1 || x > x2 || y <= y1 || y > y2)
    762762                {
    763763                    /* Out of range. Skip the contact. */
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