- Timestamp:
- Jul 2, 2011 1:24:54 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r37712 r37735 3869 3869 /* Windows guests need offscreen VRAM too for graphics acceleration features: */ 3870 3870 #ifdef VBOX_WITH_CRHGSMI 3871 if ( strGuestOSTypeId == "WindowsVista" || strGuestOSTypeId == "Windows7")3871 if (isWddmCompatibleOsType(strGuestOSTypeId)) 3872 3872 { 3873 3873 /* wddm mode, there are two surfaces for each screen: shadow & primary */ … … 4438 4438 cbSize += 64 * _1M; 4439 4439 return cbSize; 4440 } 4441 4442 /* static */ 4443 bool VBoxGlobal::isWddmCompatibleOsType(const QString &strGuestOSTypeId) 4444 { 4445 return strGuestOSTypeId.startsWith("WindowsVista") || strGuestOSTypeId.startsWith("Windows7") || strGuestOSTypeId.startsWith("Windows2008"); 4440 4446 } 4441 4447 #endif /* VBOX_WITH_CRHGSMI */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r37470 r37735 717 717 718 718 #ifdef VBOX_WITH_CRHGSMI 719 static bool isWddmCompatibleOsType(const QString &strGuestOSTypeId); 719 720 static quint64 required3DWddmOffscreenVideoMemory(const QString &strGuestOSTypeId, int cMonitors = 1); 720 721 #endif /* VBOX_WITH_CRHGSMI */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r37652 r37735 141 141 /* Check if WDDM mode supported by the guest OS type: */ 142 142 QString strguestOSTypeId = m_guestOSType.GetId(); 143 m_fWddmModeSupported = strguestOSTypeId == "WindowsVista" || strguestOSTypeId == "Windows7";143 m_fWddmModeSupported = VBoxGlobal::isWddmCompatibleOsType(strguestOSTypeId); 144 144 #endif /* VBOX_WITH_CRHGSMI */ 145 145
Note:
See TracChangeset
for help on using the changeset viewer.