- Timestamp:
- Jun 19, 2015 1:35:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r56443 r56561 141 141 LogRel(("GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen %d to %dx%d\n", 142 142 (int)screenId(), sizeHint.width(), sizeHint.height())); 143 /* Temporarily restrict the size to prevent a brief resize to the 144 * framebuffer dimensions (see @a UIMachineView::sizeHint()) before 145 * the following resize() is acted upon. Expand current limitations 146 * too. */ 147 setMaximumSize(sizeHint); 148 m_sizeHintOverride = sizeHint; 143 if (uisession()->isGuestSupportsGraphics()) 144 { 145 /* Temporarily restrict the size to prevent a brief resize to the 146 * framebuffer dimensions (see @a UIMachineView::sizeHint()) before 147 * the following resize() is acted upon. Expand current limitations 148 * too. */ 149 setMaximumSize(sizeHint); 150 m_sizeHintOverride = sizeHint; 151 } 152 /** @todo What if not m_bIsGuestAutoresizeEnabled? Just let the guest start 153 * at the default 800x600? */ 149 154 display().SetVideoModeHint(screenId(), true, false, 0, 0, sizeHint.width(), sizeHint.height(), 0); 150 155 }
Note:
See TracChangeset
for help on using the changeset viewer.