Changeset 9067 in vbox for trunk/src/VBox
- Timestamp:
- May 23, 2008 10:16:56 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r9053 r9067 239 239 bool mIgnoreMainwndResize : 1; 240 240 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 */ 241 247 bool mDoResize : 1; 242 248 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r9053 r9067 1556 1556 { 1557 1557 /* 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". */ 1559 1559 mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen(); 1560 1560 if (!mIgnoreMainwndResize && … … 3558 3558 if (!aToSize.isValid()) 3559 3559 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). */ 3560 3567 if (mAutoresizeGuest && 3561 3568 (aToSize.isValid() || mDoResize)) … … 3563 3570 LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height())); 3564 3571 3565 /* Increase the desktop geometryif needed */3572 /* Increase the maximum allowed size to the new size if needed */ 3566 3573 setDesktopGeoHint (sz.width(), sz.height()); 3567 3574 -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxConsoleView.h
r9053 r9067 257 257 bool mIgnoreMainwndResize : 1; 258 258 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 */ 259 265 bool mDoResize : 1; 260 266 -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r9058 r9067 1603 1603 { 1604 1604 /* 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". */ 1606 1606 mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen(); 1607 1607 if (!mIgnoreMainwndResize && … … 3601 3601 if (!aToSize.isValid()) 3602 3602 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). */ 3603 3610 if (mAutoresizeGuest && 3604 3611 (aToSize.isValid() || mDoResize)) … … 3606 3613 LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height())); 3607 3614 3608 /* Increase the desktop geometryif needed */3615 /* Increase the maximum allowed size to the new size if needed */ 3609 3616 setDesktopGeoHint (sz.width(), sz.height()); 3610 3617
Note:
See TracChangeset
for help on using the changeset viewer.