VirtualBox

Changeset 34835 in vbox


Ignore:
Timestamp:
Dec 8, 2010 2:10:49 PM (14 years ago)
Author:
vboxsync
Message:

Main: fix mouse reporting which was broken in the path used by Linux guests with pre-4.0 Additions

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r34754 r34835  
    935935                                       int32_t *px2, int32_t *py2)
    936936{
     937    int32_t x1 = 0, y1 = 0, x2 = 0, y2 = 0;
     938    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     939
    937940    AssertPtrReturnVoid(px1);
    938941    AssertPtrReturnVoid(py1);
    939942    AssertPtrReturnVoid(px2);
    940943    AssertPtrReturnVoid(py2);
    941     int32_t x1 = 0, y1 = 0, x2 = 0, y2 = 0;
    942     for (unsigned i = 0; i < mcMonitors; ++i)
     944    LogFlowFunc(("\n"));
     945
     946    if (!mpDrv)
     947        return;
     948    x2 = mpDrv->IConnector.cx;
     949    y2 = mpDrv->IConnector.cy;
     950    for (unsigned i = 1; i < mcMonitors; ++i)
    943951    {
    944952        x1 = RT_MIN(x1, maFramebuffers[i].xOrigin);
  • trunk/src/VBox/Main/MouseImpl.cpp

    r34754 r34835  
    468468    {
    469469        int32_t x1, y1, x2, y2;
     470        /* Takes the display lock */
    470471        pDisplay->getFramebufferDimensions(&x1, &y1, &x2, &y2);
    471472        *pcX = x1 != x2 ? (x - 1 - x1) * 0xFFFF / (x2 - x1) : 0;
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