Changeset 9048 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 22, 2008 6:16:10 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r9036 r9048 240 240 bool mAutoresizeGuest : 1; 241 241 242 bool m IsAdditionsActive: 1;242 bool mGuestSupportsGraphics : 1; 243 243 244 244 bool mNumLock : 1; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r9045 r9048 629 629 , mIgnoreMainwndResize (true) 630 630 , mAutoresizeGuest (false) 631 , m IsAdditionsActive(false)631 , mGuestSupportsGraphics (false) 632 632 , mNumLock (false) 633 633 , mScrollLock (false) … … 997 997 maybeRestrictMinimumSize(); 998 998 999 if (m IsAdditionsActive&& mAutoresizeGuest)999 if (mGuestSupportsGraphics && mAutoresizeGuest) 1000 1000 doResizeHint(); 1001 1001 } … … 1200 1200 LogFlowFunc (("AdditionsStateChangeEventType\n")); 1201 1201 1202 m IsAdditionsActive = ge->additionActive();1202 mGuestSupportsGraphics = ge->supportsGraphics(); 1203 1203 1204 1204 maybeRestrictMinimumSize(); … … 1555 1555 { 1556 1556 if (!mIgnoreMainwndResize && 1557 m IsAdditionsActive&& mAutoresizeGuest)1557 mGuestSupportsGraphics && mAutoresizeGuest) 1558 1558 resize_hint_timer->start (300, TRUE); 1559 1559 break; … … 2244 2244 void VBoxConsoleView::toggleFSMode (const QSize &aSize) 2245 2245 { 2246 if ((m IsAdditionsActive&& mAutoresizeGuest) ||2246 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 2247 2247 mMainWnd->isTrueFullscreen()) 2248 2248 { … … 2286 2286 bool VBoxConsoleView::isAutoresizeGuestActive() 2287 2287 { 2288 return m IsAdditionsActive&& mAutoresizeGuest;2288 return mGuestSupportsGraphics && mAutoresizeGuest; 2289 2289 } 2290 2290 … … 3545 3545 void VBoxConsoleView::doResizeHint (const QSize &aToSize) 3546 3546 { 3547 if ((m IsAdditionsActive&& mAutoresizeGuest) ||3547 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 3548 3548 mMainWnd->isTrueFullscreen()) 3549 3549 { … … 3654 3654 if (mode == VBoxDefs::SDLMode) 3655 3655 { 3656 if (!m IsAdditionsActive|| !mAutoresizeGuest)3656 if (!mGuestSupportsGraphics || !mAutoresizeGuest) 3657 3657 setMinimumSize (sizeHint()); 3658 3658 else
Note:
See TracChangeset
for help on using the changeset viewer.