VirtualBox

Changeset 56561 in vbox for trunk/src


Ignore:
Timestamp:
Jun 19, 2015 1:35:52 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: attempt to fix a regression that sometimes made the GUI start up with scroll bars around the guest view.

File:
1 edited

Legend:

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

    r56443 r56561  
    141141    LogRel(("GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen %d to %dx%d\n",
    142142            (int)screenId(), sizeHint.width(), sizeHint.height()));
    143     /* Temporarily restrict the size to prevent a brief resize to the
    144      * framebuffer dimensions (see @a UIMachineView::sizeHint()) before
    145      * the following resize() is acted upon.  Expand current limitations
    146      * too. */
    147     setMaximumSize(sizeHint);
    148     m_sizeHintOverride = sizeHint;
     143    if (uisession()->isGuestSupportsGraphics())
     144    {
     145        /* Temporarily restrict the size to prevent a brief resize to the
     146         * framebuffer dimensions (see @a UIMachineView::sizeHint()) before
     147         * the following resize() is acted upon.  Expand current limitations
     148         * too. */
     149        setMaximumSize(sizeHint);
     150        m_sizeHintOverride = sizeHint;
     151    }
     152    /** @todo What if not m_bIsGuestAutoresizeEnabled?  Just let the guest start
     153     *        at the default 800x600? */
    149154    display().SetVideoModeHint(screenId(), true, false, 0, 0, sizeHint.width(), sizeHint.height(), 0);
    150155}
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