Changeset 45674 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Apr 23, 2013 8:45:54 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 85197
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r45660 r45674 2701 2701 if (strGraphicsControllerType == "VBOXVGA") 2702 2702 type = GraphicsControllerType_VBoxVGA; 2703 else if (strGraphicsControllerType == "NONE") 2704 type = GraphicsControllerType_Null; 2703 2705 else 2704 2706 throw ConfigFileError(this, pelmHwChild, N_("Invalid value '%s' in Display/@controller attribute"), strGraphicsControllerType.c_str()); … … 3879 3881 3880 3882 xml::ElementNode *pelmDisplay = pelmHardware->createChild("Display"); 3883 if (hw.graphicsControllerType != GraphicsControllerType_VBoxVGA) 3884 { 3885 const char *pcszGraphics; 3886 switch (hw.graphicsControllerType) 3887 { 3888 case GraphicsControllerType_VBoxVGA: pcszGraphics = "VBoxVGA"; break; 3889 default: /*case GraphicsControllerType_Null:*/ pcszGraphics = "None"; break; 3890 } 3891 pelmDisplay->setAttribute("controller", pcszGraphics); 3892 } 3881 3893 pelmDisplay->setAttribute("VRAMSize", hw.ulVRAMSizeMB); 3882 3894 pelmDisplay->setAttribute("monitorCount", hw.cMonitors); … … 5017 5029 if (m->sv < SettingsVersion_v1_14) 5018 5030 { 5019 // VirtualBox 4.3 adds default frontend setting. 5031 // VirtualBox 4.3 adds default frontend setting, graphics controller 5032 // setting, explicit long mode setting. 5020 5033 if ( !hardwareMachine.strDefaultFrontend.isEmpty() 5034 || hardwareMachine.graphicsControllerType != GraphicsControllerType_VBoxVGA 5021 5035 || hardwareMachine.enmLongMode != Hardware::LongMode_Legacy) 5022 5036 m->sv = SettingsVersion_v1_14;
Note:
See TracChangeset
for help on using the changeset viewer.