VirtualBox

Changeset 52978 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Oct 8, 2014 7:09:11 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96430
Message:

IDisplay::GetScreenResolution returns status of the guest monitor.

Location:
trunk/src/VBox/Main/src-client
Files:
3 edited

Legend:

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

    r52923 r52978  
    11041104        {
    11051105            ULONG dummy;
     1106            GuestMonitorStatus_T monitorStatus;
    11061107            hr = server->mConsole->i_getDisplay()->GetScreenResolution(uScreenId, &dummy, &dummy, &dummy,
    1107                                                                      &xOrigin, &yOrigin);
     1108                                                                       &xOrigin, &yOrigin, &monitorStatus);
    11081109
    11091110            if (SUCCEEDED(hr))
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r52934 r52978  
    14481448/////////////////////////////////////////////////////////////////////////////
    14491449HRESULT Display::getScreenResolution(ULONG aScreenId, ULONG *aWidth, ULONG *aHeight, ULONG *aBitsPerPixel,
    1450                                      LONG *aXOrigin, LONG *aYOrigin)
     1450                                     LONG *aXOrigin, LONG *aYOrigin, GuestMonitorStatus_T *aGuestMonitorStatus)
    14511451{
    14521452    LogRelFlowFunc(("aScreenId=%RU32\n", aScreenId));
     
    14591459    int32_t xOrigin = 0;
    14601460    int32_t yOrigin = 0;
     1461    bool fEnabled = true;
    14611462
    14621463    if (aScreenId == VBOX_VIDEO_PRIMARY_SCREEN)
     
    14831484        xOrigin = pFBInfo->xOrigin;
    14841485        yOrigin = pFBInfo->yOrigin;
     1486        fEnabled = !RT_BOOL(pFBInfo->flags & VBVA_SCREEN_F_DISABLED);
    14851487    }
    14861488    else
     
    14991501    if (aYOrigin)
    15001502        *aYOrigin = yOrigin;
     1503    if (aGuestMonitorStatus)
     1504        *aGuestMonitorStatus = fEnabled? GuestMonitorStatus_Enabled: GuestMonitorStatus_Disabled;
    15011505
    15021506    return S_OK;
  • trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp

    r52082 r52978  
    478478    ULONG dummy;
    479479    LONG xShift, yShift;
     480    GuestMonitorStatus_T monitorStatus;
    480481    hr = pDisplay->GetScreenResolution(uScreenId, &dummy, &dummy, &dummy,
    481                                        &xShift, &yShift);
     482                                       &xShift, &yShift, &monitorStatus);
    482483    if (FAILED(hr))
    483484        return hr;
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