VirtualBox

Changeset 27766 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 29, 2010 8:04:51 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59409
Message:

FE/Qt4: fix r59397 for the new core as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r27760 r27766  
    17941794            QPoint cpnt = viewportToContents(aPos);
    17951795            if (cpnt.x() < 0) cpnt.setX(0);
    1796             else if (cpnt.x() > cw) cpnt.setX(cw);
     1796            else if (cpnt.x() > cw - 1) cpnt.setX(cw - 1);
    17971797            if (cpnt.y() < 0) cpnt.setY(0);
    1798             else if (cpnt.y() > ch) cpnt.setY(ch);
     1798            else if (cpnt.y() > ch - 1) cpnt.setY(ch - 1);
    17991799
    18001800            // TODO: Where to put that actually?
     
    18081808            CMouse mouse = session().GetConsole().GetMouse();
    18091809            // AssertMsgFailed(("x=%d, y=%d", cpnt.x(), cpnt.y())); // this shows what absolute coordinates are correct!
    1810             mouse.PutMouseEventAbsolute(cpnt.x(), cpnt.y(), wheelVertical, wheelHorizontal, state);
     1810            mouse.PutMouseEventAbsolute(cpnt.x() + 1, cpnt.y() + 1, wheelVertical, wheelHorizontal, state);
    18111811            return true;
    18121812        }
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