VirtualBox

Ignore:
Timestamp:
Oct 8, 2014 7:09:11 AM (10 years ago)
Author:
vboxsync
Message:

IDisplay::GetScreenResolution returns status of the guest monitor.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
7 edited

Legend:

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

    r52733 r52978  
    575575        LONG xOrigin = 0;
    576576        LONG yOrigin = 0;
    577         console.GetDisplay().GetScreenResolution(0, uWidth, uHeight, uBpp, xOrigin, yOrigin);
     577        KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
     578        console.GetDisplay().GetScreenResolution(0, uWidth, uHeight, uBpp, xOrigin, yOrigin, monitorStatus);
    578579        QString strResolution = QString("%1x%2").arg(uWidth).arg(uHeight);
    579580        if (uBpp)
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r52904 r52978  
    643643        LONG xOrigin = 0;
    644644        LONG yOrigin = 0;
     645        KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
    645646        CDisplay display = m_pMachineView->uisession()->session().GetConsole().GetDisplay();
    646647        display.GetScreenResolution(m_pMachineView->screenId(),
    647                                     ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin);
     648                                    ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus);
    648649
    649650        /* Remind user if necessary, ignore text and VGA modes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r52937 r52978  
    23422342        LONG xOrigin = 0;
    23432343        LONG yOrigin = 0;
    2344         display.GetScreenResolution(i, width, height, bpp, xOrigin, yOrigin);
     2344        KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
     2345        display.GetScreenResolution(i, width, height, bpp, xOrigin, yOrigin, monitorStatus);
    23452346        uMaxWidth  += width;
    23462347        uMaxHeight  = RT_MAX(uMaxHeight, height);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r52733 r52978  
    962962            LONG xShift = 0, yShift = 0;
    963963            ULONG dummy;
    964             session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift);
     964            KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
     965            session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift, monitorStatus);
    965966            /* Set shifting: */
    966967            cpnt.setX(cpnt.x() + xShift);
     
    10271028    LONG xShift = 0, yShift = 0;
    10281029    ULONG dummy;
    1029     session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift);
     1030    KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
     1031    session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift, monitorStatus);
    10301032
    10311033    /* Pass all multi-touch events into guest: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMultiScreenLayout.cpp

    r52730 r52978  
    317317        else
    318318            screen = QApplication::desktop()->screenGeometry(screenLayout.value(iGuestScreen, 0));
    319         display.GetScreenResolution(iGuestScreen, width, height, guestBpp, xOrigin, yOrigin);
     319        KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
     320        display.GetScreenResolution(iGuestScreen, width, height, guestBpp, xOrigin, yOrigin, monitorStatus);
    320321        usedBits += screen.width() * /* display width */
    321322                    screen.height() * /* display height */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp

    r52730 r52978  
    205205    ULONG uWidth, uHeight, uBitsPerPixel;
    206206    LONG uOriginX, uOriginY;
     207    KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
    207208    CDisplay display = session().GetConsole().GetDisplay();
    208     display.GetScreenResolution(iIndex, uWidth, uHeight, uBitsPerPixel, uOriginX, uOriginY);
     209    display.GetScreenResolution(iIndex, uWidth, uHeight, uBitsPerPixel, uOriginX, uOriginY, monitorStatus);
    209210    if (!fEnabled)
    210211        display.SetVideoModeHint(iIndex, false, false, 0, 0, 0, 0, 0);
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp

    r52952 r52978  
    241241                    LONG iOriginX, iOriginY;
    242242                    ULONG uGuestWidth, uGuestHeight, uBpp;
    243                     display.GetScreenResolution(0, uGuestWidth, uGuestHeight, uBpp, iOriginX, iOriginY);
     243                    KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
     244                    display.GetScreenResolution(0, uGuestWidth, uGuestHeight, uBpp, iOriginX, iOriginY, monitorStatus);
    244245                    double dAspectRatio = (double)uGuestWidth / uGuestHeight;
    245246                    /* Look for the best aspect-ratio preset preset: */
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