Changeset 27766 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 29, 2010 8:04:51 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59409
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r27760 r27766 1794 1794 QPoint cpnt = viewportToContents(aPos); 1795 1795 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); 1797 1797 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); 1799 1799 1800 1800 // TODO: Where to put that actually? … … 1808 1808 CMouse mouse = session().GetConsole().GetMouse(); 1809 1809 // 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); 1811 1811 return true; 1812 1812 }
Note:
See TracChangeset
for help on using the changeset viewer.