- Timestamp:
- May 23, 2008 12:17:07 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r9070 r9076 998 998 maybeRestrictMinimumSize(); 999 999 1000 if (m AutoresizeGuest)1000 if (mGuestSupportsGraphics && mAutoresizeGuest) 1001 1001 doResizeHint(); 1002 1002 } … … 1558 1558 * when (and only when) the autoresize property is "true". */ 1559 1559 mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen(); 1560 if (!mIgnoreMainwndResize && mAutoresizeGuest) 1560 if (!mIgnoreMainwndResize && 1561 mGuestSupportsGraphics && mAutoresizeGuest) 1561 1562 resize_hint_timer->start (300, TRUE); 1562 1563 break; … … 2247 2248 void VBoxConsoleView::toggleFSMode (const QSize &aSize) 2248 2249 { 2249 if (mAutoresizeGuest || mMainWnd->isTrueFullscreen()) 2250 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 2251 mMainWnd->isTrueFullscreen()) 2250 2252 { 2251 2253 QSize newSize; … … 2288 2290 bool VBoxConsoleView::isAutoresizeGuestActive() 2289 2291 { 2290 return m AutoresizeGuest;2292 return mGuestSupportsGraphics && mAutoresizeGuest; 2291 2293 } 2292 2294 … … 3547 3549 void VBoxConsoleView::doResizeHint (const QSize &aToSize) 3548 3550 { 3549 if (m AutoresizeGuest)3551 if (mGuestSupportsGraphics && mAutoresizeGuest) 3550 3552 { 3551 3553 /* If this slot is invoked directly then use the passed size … … 3665 3667 if (mode == VBoxDefs::SDLMode) 3666 3668 { 3667 if (!m AutoresizeGuest)3669 if (!mGuestSupportsGraphics || !mAutoresizeGuest) 3668 3670 setMinimumSize (sizeHint()); 3669 3671 else -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r9072 r9076 1026 1026 maybeRestrictMinimumSize(); 1027 1027 1028 if (m AutoresizeGuest)1028 if (mGuestSupportsGraphics && mAutoresizeGuest) 1029 1029 doResizeHint(); 1030 1030 } … … 1595 1595 * when (and only when) the autoresize property is "true". */ 1596 1596 mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen(); 1597 if (!mIgnoreMainwndResize && mAutoresizeGuest) 1597 if (!mIgnoreMainwndResize && 1598 mGuestSupportsGraphics && mAutoresizeGuest) 1598 1599 QTimer::singleShot (300, this, SLOT (doResizeHint())); 1599 1600 break; … … 2277 2278 void VBoxConsoleView::toggleFSMode (const QSize &aSize) 2278 2279 { 2279 if (mAutoresizeGuest || mMainWnd->isTrueFullscreen()) 2280 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 2281 mMainWnd->isTrueFullscreen()) 2280 2282 { 2281 2283 QSize newSize; … … 2318 2320 bool VBoxConsoleView::isAutoresizeGuestActive() 2319 2321 { 2320 return m AutoresizeGuest;2322 return mGuestSupportsGraphics && mAutoresizeGuest; 2321 2323 } 2322 2324 … … 3569 3571 void VBoxConsoleView::doResizeHint (const QSize &aToSize) 3570 3572 { 3571 if (m AutoresizeGuest)3573 if (mGuestSupportsGraphics && mAutoresizeGuest) 3572 3574 { 3573 3575 /* If this slot is invoked directly then use the passed size … … 3687 3689 if (mode == VBoxDefs::SDLMode) 3688 3690 { 3689 if (!m AutoresizeGuest)3691 if (!mGuestSupportsGraphics || !mAutoresizeGuest) 3690 3692 setMinimumSize (sizeHint()); 3691 3693 else
Note:
See TracChangeset
for help on using the changeset viewer.