VirtualBox

Changeset 16704 in vbox


Ignore:
Timestamp:
Feb 12, 2009 11:10:26 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42720
Message:

FE/Qt: adjust the guest resolution when the guest is started in fullscreen, in case the host resolution has changed

File:
1 edited

Legend:

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

    r16699 r16704  
    13701370                LogFlowFunc (("AdditionsStateChangeEventType\n"));
    13711371
     1372                /* Always send a size hint if we are in fullscreen or seamless
     1373                 * when the graphics capability is enabled, in case the host
     1374                 * resolution has changed since the VM was last run. */
     1375                if (!mDoResize &&
     1376                    (mMainWnd->isTrueSeamless() || mMainWnd->isTrueFullscreen()))
     1377                    mDoResize = (mGuestSupportsGraphics != ge->supportsGraphics());
     1378
    13721379                mGuestSupportsGraphics = ge->supportsGraphics();
    13731380
    13741381                maybeRestrictMinimumSize();
     1382
     1383                /* This will only be acted upon if mDoResize is true. */
     1384                doResizeHint();
    13751385
    13761386                emit additionsStateChanged (ge->additionVersion(),
     
    38393849            mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0);
    38403850        }
     3851        /* we have resized now... */
     3852        mDoResize = false;
    38413853    }
    38423854}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette