Changeset 81964 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Nov 18, 2019 8:42:02 PM (5 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r81883 r81964 1634 1634 * VGA. 1635 1635 */ 1636 ComPtr<IGraphicsAdapter> pGraphicsAdapter; 1637 hrc = pMachine->COMGETTER(GraphicsAdapter)(pGraphicsAdapter.asOutParam()); H(); 1636 1638 GraphicsControllerType_T enmGraphicsController; 1637 hrc = p Machine->COMGETTER(GraphicsControllerType)(&enmGraphicsController); H();1639 hrc = pGraphicsAdapter->COMGETTER(GraphicsControllerType)(&enmGraphicsController); H(); 1638 1640 switch (enmGraphicsController) 1639 1641 { … … 1647 1649 #endif 1648 1650 case GraphicsControllerType_VBoxVGA: 1649 rc = i_configGraphicsController(pDevices, enmGraphicsController, pBusMgr, pMachine, biosSettings,1651 rc = i_configGraphicsController(pDevices, enmGraphicsController, pBusMgr, pMachine, pGraphicsAdapter, biosSettings, 1650 1652 RT_BOOL(fHMEnabled)); 1651 1653 if (FAILED(rc)) … … 3759 3761 BusAssignmentManager *pBusMgr, 3760 3762 const ComPtr<IMachine> &ptrMachine, 3763 const ComPtr<IGraphicsAdapter> &ptrGraphicsAdapter, 3761 3764 const ComPtr<IBIOSSettings> &ptrBiosSettings, 3762 3765 bool fHMEnabled) … … 3778 3781 InsertConfigNode(pInst, "Config", &pCfg); 3779 3782 ULONG cVRamMBs; 3780 hrc = ptr Machine->COMGETTER(VRAMSize)(&cVRamMBs);H();3783 hrc = ptrGraphicsAdapter->COMGETTER(VRAMSize)(&cVRamMBs); H(); 3781 3784 InsertConfigInteger(pCfg, "VRamSize", cVRamMBs * _1M); 3782 3785 ULONG cMonitorCount; 3783 hrc = ptr Machine->COMGETTER(MonitorCount)(&cMonitorCount);H();3786 hrc = ptrGraphicsAdapter->COMGETTER(MonitorCount)(&cMonitorCount); H(); 3784 3787 InsertConfigInteger(pCfg, "MonitorCount", cMonitorCount); 3785 3788 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE … … 3789 3792 #endif 3790 3793 BOOL f3DEnabled; 3791 hrc = ptr Machine->COMGETTER(Accelerate3DEnabled)(&f3DEnabled);H();3794 hrc = ptrGraphicsAdapter->COMGETTER(Accelerate3DEnabled)(&f3DEnabled); H(); 3792 3795 InsertConfigInteger(pCfg, "3DEnabled", f3DEnabled); 3793 3796 -
trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp
r81682 r81964 618 618 case VRDE_QP_NUMBER_MONITORS: 619 619 { 620 ULONG cMonitors = 1; 621 622 server->mConsole->i_machine()->COMGETTER(MonitorCount)(&cMonitors); 620 uint32_t cMonitors = server->mConsole->i_getDisplay()->i_getMonitorCount(); 623 621 624 622 if (cbBuffer >= sizeof(uint32_t)) -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r80872 r81964 484 484 fVGAResizing = false; 485 485 486 ComPtr<IGraphicsAdapter> pGraphicsAdapter; 487 HRESULT hrc = mParent->i_machine()->COMGETTER(GraphicsAdapter)(pGraphicsAdapter.asOutParam()); 488 AssertComRCReturnRC(hrc); 489 AssertReturn(!pGraphicsAdapter.isNull(), E_FAIL); 490 486 491 ULONG ul; 487 mParent->i_machine()->COMGETTER(MonitorCount)(&ul);492 pGraphicsAdapter->COMGETTER(MonitorCount)(&ul); 488 493 mcMonitors = ul; 489 494 xInputMappingOrigin = 0;
Note:
See TracChangeset
for help on using the changeset viewer.