VirtualBox

Changeset 51339 in vbox


Ignore:
Timestamp:
May 22, 2014 9:12:47 AM (11 years ago)
Author:
vboxsync
Message:

Main,Frontends: use GetScreenResolution to get the guest screen origin.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r51203 r51339  
    954954
    955955            /* Determine shifting: */
    956             CFramebuffer framebuffer;
    957956            LONG xShift = 0, yShift = 0;
    958             session().GetConsole().GetDisplay().GetFramebuffer(uScreenId, framebuffer, xShift, yShift);
     957            ULONG dummy;
     958            session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift);
    959959            /* Set shifting: */
    960960            cpnt.setX(cpnt.x() + xShift);
     
    10181018    QVector<LONG64> contacts(pTouchEvent->touchPoints().size());
    10191019
    1020     CFramebuffer framebuffer;
    10211020    LONG xShift = 0, yShift = 0;
    1022     session().GetConsole().GetDisplay().GetFramebuffer(uScreenId, framebuffer, xShift, yShift);
     1021    ULONG dummy;
     1022    session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift);
    10231023
    10241024    /* Pass all multi-touch events into guest: */
  • trunk/src/VBox/Main/src-client/GuestDnDImpl.cpp

    r51092 r51339  
    584584        return hr;
    585585
    586     ComPtr<IFramebuffer> pFramebuffer;
    587586    LONG xShift, yShift;
    588     hr = pDisplay->GetFramebuffer(uScreenId, pFramebuffer.asOutParam(),
    589                                   &xShift, &yShift);
     587    hr = pDisplay->GetScreenResolution(uScreenId, NULL, NULL, NULL,
     588                                       &xShift, &yShift);
    590589    if (FAILED(hr))
    591590        return hr;
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