- Timestamp:
- Oct 15, 2014 1:00:00 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r53046 r53065 67 67 bool UIMachineLogicFullscreen::checkAvailability() 68 68 { 69 /* Temporary get a machine object: */70 const CMachine &machine = uisession()->session().GetMachine();71 72 69 /* Check if there is enough physical memory to enter fullscreen: */ 73 70 if (uisession()->isGuestAdditionsActive()) 74 71 { 75 quint64 availBits = machine .GetVRAMSize() /* VRAM */ * _1M /* MiB to bytes */ * 8 /* to bits */;72 quint64 availBits = machine().GetVRAMSize() /* VRAM */ * _1M /* MiB to bytes */ * 8 /* to bits */; 76 73 quint64 usedBits = m_pScreenLayout->memoryRequirements(); 77 74 if (availBits < usedBits) … … 536 533 537 534 /* Create machine-window(s): */ 538 for (uint cScreenId = 0; cScreenId < session().GetMachine().GetMonitorCount(); ++cScreenId)535 for (uint cScreenId = 0; cScreenId < machine().GetMonitorCount(); ++cScreenId) 539 536 addMachineWindow(UIMachineWindow::create(this, cScreenId)); 540 537 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r52978 r53065 206 206 LONG uOriginX, uOriginY; 207 207 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 208 CDisplay display = session().GetConsole().GetDisplay(); 209 display.GetScreenResolution(iIndex, uWidth, uHeight, uBitsPerPixel, uOriginX, uOriginY, monitorStatus); 208 display().GetScreenResolution(iIndex, uWidth, uHeight, uBitsPerPixel, uOriginX, uOriginY, monitorStatus); 210 209 if (!fEnabled) 211 display .SetVideoModeHint(iIndex, false, false, 0, 0, 0, 0, 0);210 display().SetVideoModeHint(iIndex, false, false, 0, 0, 0, 0, 0); 212 211 else 213 212 { … … 217 216 if (!uHeight) 218 217 uHeight = 600; 219 display .SetVideoModeHint(iIndex, true, false, 0, 0, uWidth, uHeight, 32);218 display().SetVideoModeHint(iIndex, true, false, 0, 0, uWidth, uHeight, 32); 220 219 } 221 220 } … … 224 223 { 225 224 /* Resize guest to required size: */ 226 CDisplay display = session().GetConsole().GetDisplay(); 227 display.SetVideoModeHint(iIndex, uisession()->isScreenVisible(iIndex), 225 display().SetVideoModeHint(iIndex, uisession()->isScreenVisible(iIndex), 228 226 false, 0, 0, size.width(), size.height(), 0); 229 227 } … … 268 266 269 267 /* Get monitors count: */ 270 ulong uMonitorCount = session().GetMachine().GetMonitorCount();268 ulong uMonitorCount = machine().GetMonitorCount(); 271 269 /* Create machine window(s): */ 272 270 for (ulong uScreenId = 0; uScreenId < uMonitorCount; ++ uScreenId) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r52730 r53065 126 126 127 127 /* Get monitors count: */ 128 ulong uMonitorCount = session().GetMachine().GetMonitorCount();128 ulong uMonitorCount = machine().GetMonitorCount(); 129 129 /* Create machine window(s): */ 130 130 for (ulong uScreenId = 0; uScreenId < uMonitorCount; ++ uScreenId) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r52937 r53065 65 65 bool UIMachineLogicSeamless::checkAvailability() 66 66 { 67 /* Temporary get a machine object: */68 const CMachine &machine = uisession()->session().GetMachine();69 70 67 /* Check if there is enough physical memory to enter seamless: */ 71 68 if (uisession()->isGuestAdditionsActive()) 72 69 { 73 quint64 availBits = machine .GetVRAMSize() /* VRAM */ * _1M /* MiB to bytes */ * 8 /* to bits */;70 quint64 availBits = machine().GetVRAMSize() /* VRAM */ * _1M /* MiB to bytes */ * 8 /* to bits */; 74 71 quint64 usedBits = m_pScreenLayout->memoryRequirements(); 75 72 if (availBits < usedBits) … … 261 258 262 259 /* Create machine-window(s): */ 263 for (uint cScreenId = 0; cScreenId < session().GetMachine().GetMonitorCount(); ++cScreenId)260 for (uint cScreenId = 0; cScreenId < machine().GetMonitorCount(); ++cScreenId) 264 261 addMachineWindow(UIMachineWindow::create(this, cScreenId)); 265 262
Note:
See TracChangeset
for help on using the changeset viewer.