Changeset 49983 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Dec 19, 2013 12:23:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r49785 r49983 1434 1434 break; 1435 1435 case GraphicsControllerType_VBoxVGA: 1436 rc = configGraphicsController(pDevices, "vga", pBusMgr, pMachine, biosSettings, 1436 #ifdef VBOX_WITH_VMSVGA 1437 case GraphicsControllerType_VMSVGA: 1438 #endif 1439 rc = configGraphicsController(pDevices, graphicsController, pBusMgr, pMachine, biosSettings, 1437 1440 RT_BOOL(fHMEnabled)); 1438 1441 if (FAILED(rc)) … … 3186 3189 3187 3190 int Console::configGraphicsController(PCFGMNODE pDevices, 3188 const char *pcszDevice,3191 const GraphicsControllerType_T graphicsController, 3189 3192 BusAssignmentManager *pBusMgr, 3190 3193 const ComPtr<IMachine> &pMachine, … … 3198 3201 HRESULT hrc; 3199 3202 Bstr bstr; 3203 const char *pcszDevice = "vga"; 3200 3204 3201 3205 #define H() AssertMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_GENERAL_FAILURE) … … 3216 3220 #else 3217 3221 NOREF(fHMEnabled); 3222 #endif 3223 3224 #ifdef VBOX_WITH_VMSVGA 3225 if (graphicsController == GraphicsControllerType_VMSVGA) 3226 { 3227 InsertConfigInteger(pCfg, "VMSVGAEnabled", true); 3228 #ifdef VBOX_WITH_VMSVGA3D 3229 IFramebuffer *pFramebuffer = getDisplay()->getFramebuffer(); 3230 if (pFramebuffer) 3231 { 3232 LONG64 winId = 0; 3233 /* @todo deal with multimonitor setup */ 3234 Assert(cMonitorCount == 1); 3235 hrc = pFramebuffer->COMGETTER(WinId)(&winId); 3236 InsertConfigInteger(pCfg, "HostWindowId", winId); 3237 } 3238 BOOL f3DEnabled; 3239 pMachine->COMGETTER(Accelerate3DEnabled)(&f3DEnabled); 3240 InsertConfigInteger(pCfg, "VMSVGA3dEnabled", f3DEnabled); 3241 #endif 3242 } 3218 3243 #endif 3219 3244
Note:
See TracChangeset
for help on using the changeset viewer.