Changeset 81964 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
- Timestamp:
- Nov 18, 2019 8:42:02 PM (5 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.