VirtualBox

Changeset 9067 in vbox for trunk/src/VBox


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

Frontends/VirtualBox and VirtualBox4: documented the mDoResize flag

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

Legend:

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

    r9053 r9067  
    239239    bool mIgnoreMainwndResize : 1;
    240240    bool mAutoresizeGuest : 1;
     241
     242    /**
     243     * This flag indicates whether the last console resize should trigger
     244     * a size hint to the guest.  This is important particularly when
     245     * enabling the autoresize feature to know whether to send a hint.
     246     */
    241247    bool mDoResize : 1;
    242248
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r9053 r9067  
    15561556            {
    15571557                /* Set the "guest needs to resize" hint.  This hint is acted upon
    1558                  * when (and only when) the autoresize property is set to "true". */
     1558                 * when (and only when) the autoresize property is "true". */
    15591559                mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen();
    15601560                if (!mIgnoreMainwndResize &&
     
    35583558        if (!aToSize.isValid())
    35593559            sz -= QSize (frameWidth() * 2, frameWidth() * 2);
     3560        /* We only actually send the hint if
     3561         * 1) the autoresize property is set to true and
     3562         * 2) either an explicit new size was given (e.g. if the request
     3563         *    was triggered directly by a console resize event) or if no
     3564         *    explicit size was specified but a resize is flagged as being
     3565         *    needed (e.g. the autoresize was just enabled and the console
     3566         *    was resized while it was disabled). */
    35603567        if (mAutoresizeGuest &&
    35613568            (aToSize.isValid() || mDoResize))
     
    35633570            LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height()));
    35643571
    3565             /* Increase the desktop geometry if needed */
     3572            /* Increase the maximum allowed size to the new size if needed */
    35663573            setDesktopGeoHint (sz.width(), sz.height());
    35673574
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxConsoleView.h

    r9053 r9067  
    257257    bool mIgnoreMainwndResize : 1;
    258258    bool mAutoresizeGuest : 1;
     259
     260    /**
     261     * This flag indicates whether the last console resize should trigger
     262     * a size hint to the guest.  This is important particularly when
     263     * enabling the autoresize feature to know whether to send a hint.
     264     */
    259265    bool mDoResize : 1;
    260266
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp

    r9058 r9067  
    16031603            {
    16041604                /* Set the "guest needs to resize" hint.  This hint is acted upon
    1605                  * when (and only when) the autoresize property is set to "true". */
     1605                 * when (and only when) the autoresize property is "true". */
    16061606                mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen();
    16071607                if (!mIgnoreMainwndResize &&
     
    36013601        if (!aToSize.isValid())
    36023602            sz -= QSize (frameWidth() * 2, frameWidth() * 2);
     3603        /* We only actually send the hint if
     3604         * 1) the autoresize property is set to true and
     3605         * 2) either an explicit new size was given (e.g. if the request
     3606         *    was triggered directly by a console resize event) or if no
     3607         *    explicit size was specified but a resize is flagged as being
     3608         *    needed (e.g. the autoresize was just enabled and the console
     3609         *    was resized while it was disabled). */
    36033610        if (mAutoresizeGuest &&
    36043611            (aToSize.isValid() || mDoResize))
     
    36063613            LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height()));
    36073614
    3608             /* Increase the desktop geometry if needed */
     3615            /* Increase the maximum allowed size to the new size if needed */
    36093616            setDesktopGeoHint (sz.width(), sz.height());
    36103617
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