Changeset 76169 in vbox
- Timestamp:
- Dec 11, 2018 7:19:41 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r76164 r76169 320 320 321 321 /* Record the hint to extra data, needed for guests using VMSVGA: */ 322 /* This should be done before the actual hint is sent in case the guest overrides it. */ 322 323 storeGuestSizeHint(size); 323 324 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMultiScreenLayout.cpp
r71615 r76169 134 134 /* Then we have to disable excessive guest-screen: */ 135 135 LogRel(("GUI: UIMultiScreenLayout::update: Disabling excessive guest-screen %d\n", iGuestScreen)); 136 m_pMachineLogic->uisession()->setScreenVisibleHostDesires(iGuestScreen, false); 136 137 m_pMachineLogic->display().SetVideoModeHint(iGuestScreen, false, false, 0, 0, 0, 0, 0); 137 m_pMachineLogic->uisession()->setScreenVisibleHostDesires(iGuestScreen, false);138 138 } 139 139 } … … 168 168 LogRel(("GUI: UIMultiScreenLayout::update: Enabling guest-screen %d with following resolution: %dx%d\n", 169 169 iGuestScreen, uWidth, uHeight)); 170 m_pMachineLogic->uisession()->setScreenVisibleHostDesires(iGuestScreen, true); 170 171 m_pMachineLogic->display().SetVideoModeHint(iGuestScreen, true, false, 0, 0, uWidth, uHeight, 32); 171 m_pMachineLogic->uisession()->setScreenVisibleHostDesires(iGuestScreen, true);172 172 } 173 173 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r76164 r76169 2063 2063 2064 2064 /* And remember the request in extra data for guests with VMSVGA: */ 2065 /* This should be done before the actual hint is sent in case the guest overrides it. */ 2065 2066 gEDataManager->setLastGuestScreenVisibilityStatus(uScreenId, fIsMonitorVisible, vboxGlobal().managedVMUuid()); 2066 2067 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r75358 r76169 230 230 if (!fEnabled) 231 231 { 232 uisession()->setScreenVisibleHostDesires(iIndex, false); 232 233 display().SetVideoModeHint(iIndex, false, false, 0, 0, 0, 0, 0); 233 uisession()->setScreenVisibleHostDesires(iIndex, false);234 234 } 235 235 else … … 240 240 if (!uHeight) 241 241 uHeight = 600; 242 uisession()->setScreenVisibleHostDesires(iIndex, true); 242 243 display().SetVideoModeHint(iIndex, true, false, 0, 0, uWidth, uHeight, 32); 243 uisession()->setScreenVisibleHostDesires(iIndex, true);244 244 } 245 245 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r72458 r76169 175 175 /// @todo What if not m_bIsGuestAutoresizeEnabled? 176 176 /// Just let the guest start at the default 800x600? 177 uisession()->setScreenVisibleHostDesires(screenId(), guestScreenVisibilityStatus()); 177 178 display().SetVideoModeHint(screenId(), 178 179 guestScreenVisibilityStatus(), 179 180 false, 0, 0, sizeHint.width(), sizeHint.height(), 0); 180 uisession()->setScreenVisibleHostDesires(screenId(), guestScreenVisibilityStatus());181 181 } 182 182 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.cpp
r71074 r76169 180 180 181 181 /* Send saved size-hint to the guest: */ 182 uisession()->setScreenVisibleHostDesires(screenId(), guestScreenVisibilityStatus()); 182 183 display().SetVideoModeHint(screenId(), 183 184 guestScreenVisibilityStatus(), 184 185 false, 0, 0, sizeHint.width(), sizeHint.height(), 0); 185 uisession()->setScreenVisibleHostDesires(screenId(), guestScreenVisibilityStatus());186 186 } 187 187
Note:
See TracChangeset
for help on using the changeset viewer.