Changeset 52978 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 8, 2014 7:09:11 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/UIVMInfoDialog.cpp
r52733 r52978 575 575 LONG xOrigin = 0; 576 576 LONG yOrigin = 0; 577 console.GetDisplay().GetScreenResolution(0, uWidth, uHeight, uBpp, xOrigin, yOrigin); 577 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 578 console.GetDisplay().GetScreenResolution(0, uWidth, uHeight, uBpp, xOrigin, yOrigin, monitorStatus); 578 579 QString strResolution = QString("%1x%2").arg(uWidth).arg(uHeight); 579 580 if (uBpp) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r52904 r52978 643 643 LONG xOrigin = 0; 644 644 LONG yOrigin = 0; 645 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 645 646 CDisplay display = m_pMachineView->uisession()->session().GetConsole().GetDisplay(); 646 647 display.GetScreenResolution(m_pMachineView->screenId(), 647 ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin );648 ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus); 648 649 649 650 /* Remind user if necessary, ignore text and VGA modes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r52937 r52978 2342 2342 LONG xOrigin = 0; 2343 2343 LONG yOrigin = 0; 2344 display.GetScreenResolution(i, width, height, bpp, xOrigin, yOrigin); 2344 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 2345 display.GetScreenResolution(i, width, height, bpp, xOrigin, yOrigin, monitorStatus); 2345 2346 uMaxWidth += width; 2346 2347 uMaxHeight = RT_MAX(uMaxHeight, height); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r52733 r52978 962 962 LONG xShift = 0, yShift = 0; 963 963 ULONG dummy; 964 session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift); 964 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 965 session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift, monitorStatus); 965 966 /* Set shifting: */ 966 967 cpnt.setX(cpnt.x() + xShift); … … 1027 1028 LONG xShift = 0, yShift = 0; 1028 1029 ULONG dummy; 1029 session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift); 1030 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 1031 session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift, monitorStatus); 1030 1032 1031 1033 /* Pass all multi-touch events into guest: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMultiScreenLayout.cpp
r52730 r52978 317 317 else 318 318 screen = QApplication::desktop()->screenGeometry(screenLayout.value(iGuestScreen, 0)); 319 display.GetScreenResolution(iGuestScreen, width, height, guestBpp, xOrigin, yOrigin); 319 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 320 display.GetScreenResolution(iGuestScreen, width, height, guestBpp, xOrigin, yOrigin, monitorStatus); 320 321 usedBits += screen.width() * /* display width */ 321 322 screen.height() * /* display height */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r52730 r52978 205 205 ULONG uWidth, uHeight, uBitsPerPixel; 206 206 LONG uOriginX, uOriginY; 207 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 207 208 CDisplay display = session().GetConsole().GetDisplay(); 208 display.GetScreenResolution(iIndex, uWidth, uHeight, uBitsPerPixel, uOriginX, uOriginY );209 display.GetScreenResolution(iIndex, uWidth, uHeight, uBitsPerPixel, uOriginX, uOriginY, monitorStatus); 209 210 if (!fEnabled) 210 211 display.SetVideoModeHint(iIndex, false, false, 0, 0, 0, 0, 0); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp
r52952 r52978 241 241 LONG iOriginX, iOriginY; 242 242 ULONG uGuestWidth, uGuestHeight, uBpp; 243 display.GetScreenResolution(0, uGuestWidth, uGuestHeight, uBpp, iOriginX, iOriginY); 243 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 244 display.GetScreenResolution(0, uGuestWidth, uGuestHeight, uBpp, iOriginX, iOriginY, monitorStatus); 244 245 double dAspectRatio = (double)uGuestWidth / uGuestHeight; 245 246 /* Look for the best aspect-ratio preset preset: */
Note:
See TracChangeset
for help on using the changeset viewer.