Changeset 53722 in vbox
- Timestamp:
- Jan 4, 2015 12:27:03 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97500
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r53560 r53722 660 660 const GraphicsControllerType_T graphicsController, 661 661 BusAssignmentManager *pBusMgr, 662 const ComPtr<IMachine> &p Machine,663 const ComPtr<IBIOSSettings> & biosSettings,662 const ComPtr<IMachine> &ptrMachine, 663 const ComPtr<IBIOSSettings> &ptrBiosSettings, 664 664 bool fHMEnabled); 665 665 int i_configMediumAttachment(PCFGMNODE pCtlInst, -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r53560 r53722 1553 1553 * VGA. 1554 1554 */ 1555 GraphicsControllerType_T graphicsController;1556 hrc = pMachine->COMGETTER(GraphicsControllerType)(& graphicsController);H();1557 switch ( graphicsController)1555 GraphicsControllerType_T enmGraphicsController; 1556 hrc = pMachine->COMGETTER(GraphicsControllerType)(&enmGraphicsController); H(); 1557 switch (enmGraphicsController) 1558 1558 { 1559 1559 case GraphicsControllerType_Null: … … 1563 1563 case GraphicsControllerType_VMSVGA: 1564 1564 #endif 1565 rc = i_configGraphicsController(pDevices, graphicsController, pBusMgr, pMachine, biosSettings,1565 rc = i_configGraphicsController(pDevices, enmGraphicsController, pBusMgr, pMachine, biosSettings, 1566 1566 RT_BOOL(fHMEnabled)); 1567 1567 if (FAILED(rc)) … … 1569 1569 break; 1570 1570 default: 1571 AssertMsgFailed(("Invalid graphicsController=%d\n", graphicsController));1571 AssertMsgFailed(("Invalid graphicsController=%d\n", enmGraphicsController)); 1572 1572 return VMR3SetError(pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS, 1573 N_("Invalid graphics controller type '%d'"), graphicsController);1573 N_("Invalid graphics controller type '%d'"), enmGraphicsController); 1574 1574 } 1575 1575 … … 3369 3369 3370 3370 int Console::i_configGraphicsController(PCFGMNODE pDevices, 3371 const GraphicsControllerType_T graphicsController,3371 const GraphicsControllerType_T enmGraphicsController, 3372 3372 BusAssignmentManager *pBusMgr, 3373 const ComPtr<IMachine> &p Machine,3374 const ComPtr<IBIOSSettings> & biosSettings,3373 const ComPtr<IMachine> &ptrMachine, 3374 const ComPtr<IBIOSSettings> &ptrBiosSettings, 3375 3375 bool fHMEnabled) 3376 3376 { … … 3391 3391 InsertConfigNode(pInst, "Config", &pCfg); 3392 3392 ULONG cVRamMBs; 3393 hrc = p Machine->COMGETTER(VRAMSize)(&cVRamMBs);H();3393 hrc = ptrMachine->COMGETTER(VRAMSize)(&cVRamMBs); H(); 3394 3394 InsertConfigInteger(pCfg, "VRamSize", cVRamMBs * _1M); 3395 3395 ULONG cMonitorCount; 3396 hrc = p Machine->COMGETTER(MonitorCount)(&cMonitorCount);H();3396 hrc = ptrMachine->COMGETTER(MonitorCount)(&cMonitorCount); H(); 3397 3397 InsertConfigInteger(pCfg, "MonitorCount", cMonitorCount); 3398 3398 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE … … 3405 3405 3406 3406 #ifdef VBOX_WITH_VMSVGA 3407 if ( graphicsController == GraphicsControllerType_VMSVGA)3407 if (enmGraphicsController == GraphicsControllerType_VMSVGA) 3408 3408 { 3409 3409 InsertConfigInteger(pCfg, "VMSVGAEnabled", true); … … 3421 3421 } 3422 3422 BOOL f3DEnabled; 3423 pMachine->COMGETTER(Accelerate3DEnabled)(&f3DEnabled);3423 hrc = ptrMachine->COMGETTER(Accelerate3DEnabled)(&f3DEnabled); H(); 3424 3424 InsertConfigInteger(pCfg, "VMSVGA3dEnabled", f3DEnabled); 3425 3425 #endif … … 3433 3433 char szExtraDataKey[sizeof("CustomVideoModeXX")]; 3434 3434 RTStrPrintf(szExtraDataKey, sizeof(szExtraDataKey), "CustomVideoMode%u", iMode); 3435 hrc = p Machine->GetExtraData(Bstr(szExtraDataKey).raw(), bstr.asOutParam());H();3435 hrc = ptrMachine->GetExtraData(Bstr(szExtraDataKey).raw(), bstr.asOutParam()); H(); 3436 3436 if (bstr.isEmpty()) 3437 3437 break; … … 3462 3462 */ 3463 3463 BOOL fFadeIn; 3464 hrc = biosSettings->COMGETTER(LogoFadeIn)(&fFadeIn);H();3464 hrc = ptrBiosSettings->COMGETTER(LogoFadeIn)(&fFadeIn); H(); 3465 3465 InsertConfigInteger(pCfg, "FadeIn", fFadeIn ? 1 : 0); 3466 3466 BOOL fFadeOut; 3467 hrc = biosSettings->COMGETTER(LogoFadeOut)(&fFadeOut);H();3467 hrc = ptrBiosSettings->COMGETTER(LogoFadeOut)(&fFadeOut); H(); 3468 3468 InsertConfigInteger(pCfg, "FadeOut", fFadeOut ? 1: 0); 3469 3469 ULONG logoDisplayTime; 3470 hrc = biosSettings->COMGETTER(LogoDisplayTime)(&logoDisplayTime);H();3470 hrc = ptrBiosSettings->COMGETTER(LogoDisplayTime)(&logoDisplayTime); H(); 3471 3471 InsertConfigInteger(pCfg, "LogoTime", logoDisplayTime); 3472 3472 Bstr logoImagePath; 3473 hrc = biosSettings->COMGETTER(LogoImagePath)(logoImagePath.asOutParam());H();3473 hrc = ptrBiosSettings->COMGETTER(LogoImagePath)(logoImagePath.asOutParam()); H(); 3474 3474 InsertConfigString(pCfg, "LogoFile", Utf8Str(!logoImagePath.isEmpty() ? logoImagePath : "") ); 3475 3475 … … 3479 3479 BIOSBootMenuMode_T eBootMenuMode; 3480 3480 int iShowBootMenu; 3481 biosSettings->COMGETTER(BootMenuMode)(&eBootMenuMode);3481 hrc = ptrBiosSettings->COMGETTER(BootMenuMode)(&eBootMenuMode); H(); 3482 3482 switch (eBootMenuMode) 3483 3483 {
Note:
See TracChangeset
for help on using the changeset viewer.