Changeset 98010 in vbox
- Timestamp:
- Jan 6, 2023 12:54:07 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r97978 r98010 153 153 154 154 /* Get the last guest-screen size-hint, taking the scale factor into account. */ 155 const QSize sizeHint = scaledBackward(storedGuestScreenSizeHint()); 155 const QSize storedSizeHint = storedGuestScreenSizeHint(); 156 const QSize effectiveSizeHint = scaledBackward(storedSizeHint); 156 157 LogRel(("GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen %d to %dx%d\n", 157 (int)screenId(), sizeHint.width(), sizeHint.height()));158 (int)screenId(), effectiveSizeHint.width(), effectiveSizeHint.height())); 158 159 159 160 /* Expand current limitations: */ 160 setMaximumGuestSize( sizeHint);161 setMaximumGuestSize(effectiveSizeHint); 161 162 162 163 /* Temporarily restrict the size to prevent a brief resize to the … … 164 165 * applied if the frame-buffer is at full-screen dimensions and 165 166 * until the first machine view resize. */ 166 m_sizeHintOverride = QSize(800, 600).expandedTo(sizeHint);167 m_sizeHintOverride = scaledForward(QSize(640, 480)).expandedTo(storedSizeHint); 167 168 168 169 /* Restore saved monitor information to the guest. The guest may not respond … … 174 175 display().SetVideoModeHint(screenId(), 175 176 guestScreenVisibilityStatus(), 176 false, 0, 0, sizeHint.width(), sizeHint.height(), 0, false);177 false, 0, 0, effectiveSizeHint.width(), effectiveSizeHint.height(), 0, false); 177 178 } 178 179
Note:
See TracChangeset
for help on using the changeset viewer.