VirtualBox

Changeset 9076 in vbox for trunk


Ignore:
Timestamp:
May 23, 2008 12:17:07 PM (17 years ago)
Author:
vboxsync
Message:

Frontends/VirtualBox and VirtualBox4: revert r31170 until after 1.6.2

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

Legend:

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

    r9070 r9076  
    998998        maybeRestrictMinimumSize();
    999999
    1000         if (mAutoresizeGuest)
     1000        if (mGuestSupportsGraphics && mAutoresizeGuest)
    10011001            doResizeHint();
    10021002    }
     
    15581558                 * when (and only when) the autoresize property is "true". */
    15591559                mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen();
    1560                 if (!mIgnoreMainwndResize && mAutoresizeGuest)
     1560                if (!mIgnoreMainwndResize &&
     1561                    mGuestSupportsGraphics && mAutoresizeGuest)
    15611562                    resize_hint_timer->start (300, TRUE);
    15621563                break;
     
    22472248void VBoxConsoleView::toggleFSMode (const QSize &aSize)
    22482249{
    2249     if (mAutoresizeGuest || mMainWnd->isTrueFullscreen())
     2250    if ((mGuestSupportsGraphics && mAutoresizeGuest) ||
     2251        mMainWnd->isTrueFullscreen())
    22502252    {
    22512253        QSize newSize;
     
    22882290bool VBoxConsoleView::isAutoresizeGuestActive()
    22892291{
    2290     return mAutoresizeGuest;
     2292    return mGuestSupportsGraphics && mAutoresizeGuest;
    22912293}
    22922294
     
    35473549void VBoxConsoleView::doResizeHint (const QSize &aToSize)
    35483550{
    3549     if (mAutoresizeGuest)
     3551    if (mGuestSupportsGraphics && mAutoresizeGuest)
    35503552    {
    35513553        /* If this slot is invoked directly then use the passed size
     
    36653667    if (mode == VBoxDefs::SDLMode)
    36663668    {
    3667         if (!mAutoresizeGuest)
     3669        if (!mGuestSupportsGraphics || !mAutoresizeGuest)
    36683670            setMinimumSize (sizeHint());
    36693671        else
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp

    r9072 r9076  
    10261026        maybeRestrictMinimumSize();
    10271027
    1028         if (mAutoresizeGuest)
     1028        if (mGuestSupportsGraphics && mAutoresizeGuest)
    10291029            doResizeHint();
    10301030    }
     
    15951595                 * when (and only when) the autoresize property is "true". */
    15961596                mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen();
    1597                 if (!mIgnoreMainwndResize && mAutoresizeGuest)
     1597                if (!mIgnoreMainwndResize &&
     1598                    mGuestSupportsGraphics && mAutoresizeGuest)
    15981599                    QTimer::singleShot (300, this, SLOT (doResizeHint()));
    15991600                break;
     
    22772278void VBoxConsoleView::toggleFSMode (const QSize &aSize)
    22782279{
    2279     if (mAutoresizeGuest || mMainWnd->isTrueFullscreen())
     2280    if ((mGuestSupportsGraphics && mAutoresizeGuest) ||
     2281        mMainWnd->isTrueFullscreen())
    22802282    {
    22812283        QSize newSize;
     
    23182320bool VBoxConsoleView::isAutoresizeGuestActive()
    23192321{
    2320     return mAutoresizeGuest;
     2322    return mGuestSupportsGraphics && mAutoresizeGuest;
    23212323}
    23222324
     
    35693571void VBoxConsoleView::doResizeHint (const QSize &aToSize)
    35703572{
    3571     if (mAutoresizeGuest)
     3573    if (mGuestSupportsGraphics && mAutoresizeGuest)
    35723574    {
    35733575        /* If this slot is invoked directly then use the passed size
     
    36873689    if (mode == VBoxDefs::SDLMode)
    36883690    {
    3689         if (!mAutoresizeGuest)
     3691        if (!mGuestSupportsGraphics || !mAutoresizeGuest)
    36903692            setMinimumSize (sizeHint());
    36913693        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