VirtualBox

Changeset 53954 in vbox


Ignore:
Timestamp:
Jan 23, 2015 4:47:20 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: GuestSupportsGraphics is now possible without GuestAdditionsActive.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
5 edited

Legend:

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

    r53898 r53954  
    668668
    669669        /* Remind user if necessary, ignore text and VGA modes: */
     670        /* This check (supports graphics) is not quite right due to past mistakes
     671         * in the Guest Additions protocol, but in practice it should be fine. */
    670672        if (   ulGuestBitsPerPixel != ulBitsPerPixel
    671673            && ulGuestBitsPerPixel != 0
    672             && m_pMachineView->uisession()->isGuestAdditionsActive())
     674            && m_pMachineView->uisession()->isGuestSupportsGraphics())
    673675            popupCenter().remindAboutWrongColorDepth(m_pMachineView->machineWindow(),
    674676                                                     ulGuestBitsPerPixel, ulBitsPerPixel);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMultiScreenLayout.cpp

    r53287 r53954  
    245245    bool fSuccess = true;
    246246    CMachine machine = m_pMachineLogic->session().GetMachine();
    247     if (m_pMachineLogic->uisession()->isGuestAdditionsActive())
     247    if (m_pMachineLogic->uisession()->isGuestSupportsGraphics())
    248248    {
    249249        quint64 availBits = machine.GetVRAMSize() * _1M * 8;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r53320 r53954  
    190190    /* Guest additions state getters: */
    191191    bool isGuestAdditionsActive() const { return (m_ulGuestAdditionsRunLevel > AdditionsRunLevelType_None); }
    192     bool isGuestSupportsGraphics() const { return isGuestAdditionsActive() && m_fIsGuestSupportsGraphics; }
     192    bool isGuestSupportsGraphics() const { return m_fIsGuestSupportsGraphics; }
     193    /* The double check below is correct, even though it is an implementation
     194     * detail of the Additions which the GUI should not ideally have to know. */
    193195    bool isGuestSupportsSeamless() const { return isGuestSupportsGraphics() && m_fIsGuestSupportsSeamless; }
    194196
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r53065 r53954  
    6868{
    6969    /* Check if there is enough physical memory to enter fullscreen: */
    70     if (uisession()->isGuestAdditionsActive())
     70    if (uisession()->isGuestSupportsGraphics())
    7171    {
    7272        quint64 availBits = machine().GetVRAMSize() /* VRAM */ * _1M /* MiB to bytes */ * 8 /* to bits */;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r53065 r53954  
    6666{
    6767    /* Check if there is enough physical memory to enter seamless: */
    68     if (uisession()->isGuestAdditionsActive())
     68    if (uisession()->isGuestSupportsSeamless())
    6969    {
    7070        quint64 availBits = machine().GetVRAMSize() /* VRAM */ * _1M /* MiB to bytes */ * 8 /* to bits */;
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