VirtualBox

Ignore:
Timestamp:
May 22, 2008 6:16:10 AM (17 years ago)
Author:
vboxsync
Message:

Frontends/VirtualBox and VirtualBox4: whether or not the console view object should perform resize operations should depend on the state of the guest SUPPORTS_GRAPHICS capability, not on whether or not the Additions are present

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h

    r9036 r9048  
    240240    bool mAutoresizeGuest : 1;
    241241
    242     bool mIsAdditionsActive : 1;
     242    bool mGuestSupportsGraphics : 1;
    243243
    244244    bool mNumLock : 1;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r9045 r9048  
    629629    , mIgnoreMainwndResize (true)
    630630    , mAutoresizeGuest (false)
    631     , mIsAdditionsActive (false)
     631    , mGuestSupportsGraphics (false)
    632632    , mNumLock (false)
    633633    , mScrollLock (false)
     
    997997        maybeRestrictMinimumSize();
    998998
    999         if (mIsAdditionsActive && mAutoresizeGuest)
     999        if (mGuestSupportsGraphics && mAutoresizeGuest)
    10001000            doResizeHint();
    10011001    }
     
    12001200                LogFlowFunc (("AdditionsStateChangeEventType\n"));
    12011201
    1202                 mIsAdditionsActive = ge->additionActive();
     1202                mGuestSupportsGraphics = ge->supportsGraphics();
    12031203
    12041204                maybeRestrictMinimumSize();
     
    15551555            {
    15561556                if (!mIgnoreMainwndResize &&
    1557                     mIsAdditionsActive && mAutoresizeGuest)
     1557                    mGuestSupportsGraphics && mAutoresizeGuest)
    15581558                    resize_hint_timer->start (300, TRUE);
    15591559                break;
     
    22442244void VBoxConsoleView::toggleFSMode (const QSize &aSize)
    22452245{
    2246     if ((mIsAdditionsActive && mAutoresizeGuest) ||
     2246    if ((mGuestSupportsGraphics && mAutoresizeGuest) ||
    22472247        mMainWnd->isTrueFullscreen())
    22482248    {
     
    22862286bool VBoxConsoleView::isAutoresizeGuestActive()
    22872287{
    2288     return mIsAdditionsActive && mAutoresizeGuest;
     2288    return mGuestSupportsGraphics && mAutoresizeGuest;
    22892289}
    22902290
     
    35453545void VBoxConsoleView::doResizeHint (const QSize &aToSize)
    35463546{
    3547     if ((mIsAdditionsActive && mAutoresizeGuest) ||
     3547    if ((mGuestSupportsGraphics && mAutoresizeGuest) ||
    35483548        mMainWnd->isTrueFullscreen())
    35493549    {
     
    36543654    if (mode == VBoxDefs::SDLMode)
    36553655    {
    3656         if (!mIsAdditionsActive || !mAutoresizeGuest)
     3656        if (!mGuestSupportsGraphics || !mAutoresizeGuest)
    36573657            setMinimumSize (sizeHint());
    36583658        else
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