Changeset 62274 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 15, 2016 11:38:53 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 108793
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r61484 r62274 3685 3685 #ifdef VBOX_WITH_CRHGSMI 3686 3686 /* static */ 3687 quint64 VBoxGlobal::required3DWddmOffscreenVideoMemory(const QString &strGuestOSTypeId, int cMonitors /* = 1 */)3688 {3689 cMonitors = RT_MAX(cMonitors, 1);3690 quint64 cbSize = VBoxGlobal::requiredVideoMemory(strGuestOSTypeId, 1); /* why not cMonitors? */3691 cbSize += 64 * _1M;3692 return cbSize;3693 }3694 3695 /* static */3696 3687 bool VBoxGlobal::isWddmCompatibleOsType(const QString &strGuestOSTypeId) 3697 3688 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r60362 r62274 458 458 #ifdef VBOX_WITH_CRHGSMI 459 459 static bool isWddmCompatibleOsType(const QString &strGuestOSTypeId); 460 static quint64 required3DWddmOffscreenVideoMemory(const QString &strGuestOSTypeId, int cMonitors = 1);461 460 #endif /* VBOX_WITH_CRHGSMI */ 462 461 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r61381 r62274 373 373 else if (m_pCheckbox3D->isChecked() && m_fWddmModeSupported) 374 374 { 375 # if 0376 int cGuestScreenCount = m_pEditorVideoScreenCount->value();377 uNeedBytes += VBoxGlobal::required3DWddmOffscreenVideoMemory(m_guestOSType.GetId(), cGuestScreenCount);378 uNeedBytes = qMin(uNeedBytes, 256 * _1M);379 # endif380 375 uNeedBytes = qMax(uNeedBytes, (quint64) 128 * _1M); 381 376 if ((quint64)m_pEditorVideoMemorySize->value() * _1M < uNeedBytes) … … 960 955 if (m_pCheckbox3D->isChecked() && m_fWddmModeSupported) 961 956 { 962 # if 0963 uNeedMBytes += VBoxGlobal::required3DWddmOffscreenVideoMemory(m_guestOSType.GetId(), cGuestScreenCount) / _1M;964 uNeedMBytes = qMin(uNeedMBytes, 256);965 # endif966 957 uNeedMBytes = qMax(uNeedMBytes, (quint64) 128); 967 958 /* No less than 256MB (if possible): */
Note:
See TracChangeset
for help on using the changeset viewer.