- Timestamp:
- May 22, 2008 1:13:33 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r9048 r9053 239 239 bool mIgnoreMainwndResize : 1; 240 240 bool mAutoresizeGuest : 1; 241 bool mDoResize : 1; 241 242 242 243 bool mGuestSupportsGraphics : 1; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r9048 r9053 629 629 , mIgnoreMainwndResize (true) 630 630 , mAutoresizeGuest (false) 631 , mDoResize (false) 631 632 , mGuestSupportsGraphics (false) 632 633 , mNumLock (false) … … 1554 1555 case QEvent::Resize: 1555 1556 { 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". */ 1559 mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen(); 1556 1560 if (!mIgnoreMainwndResize && 1557 1561 mGuestSupportsGraphics && mAutoresizeGuest) … … 3545 3549 void VBoxConsoleView::doResizeHint (const QSize &aToSize) 3546 3550 { 3547 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 3548 mMainWnd->isTrueFullscreen()) 3551 if (mGuestSupportsGraphics && mAutoresizeGuest) 3549 3552 { 3550 3553 /* If this slot is invoked directly then use the passed size … … 3555 3558 if (!aToSize.isValid()) 3556 3559 sz -= QSize (frameWidth() * 2, frameWidth() * 2); 3557 LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height())); 3558 3559 /* Increase the desktop geometry if needed */ 3560 setDesktopGeoHint (sz.width(), sz.height()); 3561 3562 if (mAutoresizeGuest) 3560 if (mAutoresizeGuest && 3561 (aToSize.isValid() || mDoResize)) 3562 { 3563 LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height())); 3564 3565 /* Increase the desktop geometry if needed */ 3566 setDesktopGeoHint (sz.width(), sz.height()); 3567 3563 3568 mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0); 3569 } 3564 3570 } 3565 3571 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r9050 r9053 3261 3261 toggleFullscreenMode (true, true); 3262 3262 /* Disable auto-resizing if advanced graphics are not available */ 3263 /* See #2844#c10. This is just not necessary here and may lead to3264 * invalid video mode hints. */3265 #if 03266 3263 console->setAutoresizeGuest ( mIsGraphicsSupported 3267 3264 && vmAutoresizeGuestAction->isOn()); 3268 #endif3269 3265 vmAutoresizeGuestAction->setEnabled (mIsGraphicsSupported); 3270 3266 } -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxConsoleView.h
r9048 r9053 257 257 bool mIgnoreMainwndResize : 1; 258 258 bool mAutoresizeGuest : 1; 259 bool mDoResize : 1; 259 260 260 261 bool mGuestSupportsGraphics : 1; -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r9048 r9053 650 650 , mIgnoreMainwndResize (true) 651 651 , mAutoresizeGuest (false) 652 , mDoResize (false) 652 653 , mGuestSupportsGraphics (false) 653 654 , mNumLock (false) … … 1601 1602 case QEvent::Resize: 1602 1603 { 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". */ 1606 mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen(); 1603 1607 if (!mIgnoreMainwndResize && 1604 1608 mGuestSupportsGraphics && mAutoresizeGuest) … … 3574 3578 void VBoxConsoleView::doResizeHint (const QSize &aToSize) 3575 3579 { 3576 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 3577 mMainWnd->isTrueFullscreen()) 3580 if (mGuestSupportsGraphics && mAutoresizeGuest) 3578 3581 { 3579 3582 /* If this slot is invoked directly then use the passed size … … 3584 3587 if (!aToSize.isValid()) 3585 3588 sz -= QSize (frameWidth() * 2, frameWidth() * 2); 3586 LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height())); 3587 3588 /* Increase the desktop geometry if needed */ 3589 setDesktopGeoHint (sz.width(), sz.height()); 3590 3591 if (mAutoresizeGuest) 3589 if (mAutoresizeGuest && 3590 (aToSize.isValid() || mDoResize)) 3591 { 3592 LogFlowFunc (("Will suggest %d x %d\n", sz.width(), sz.height())); 3593 3594 /* Increase the desktop geometry if needed */ 3595 setDesktopGeoHint (sz.width(), sz.height()); 3596 3592 3597 mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0); 3598 } 3593 3599 } 3594 3600 } -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r9028 r9053 3323 3323 toggleFullscreenMode (true, true); 3324 3324 /* Disable auto-resizing if advanced graphics are not available */ 3325 /* See #2844#c10. This is just not necessary here and may lead to3326 * invalid video mode hints. */3327 #if 03328 3325 console->setAutoresizeGuest ( mIsGraphicsSupported 3329 3326 && vmAutoresizeGuestAction->isChecked()); 3330 #endif3331 3327 vmAutoresizeGuestAction->setEnabled (mIsGraphicsSupported); 3332 3328 }
Note:
See TracChangeset
for help on using the changeset viewer.