Changeset 34567 in vbox
- Timestamp:
- Dec 1, 2010 1:20:13 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68361
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r34550 r34567 3686 3686 3687 3687 return QString ("%1 %2").arg (number).arg (Suffixes [suffix]); 3688 } 3689 3690 /* static */ 3691 bool VBoxGlobal::shouldWarnAboutToLowVRAM(const CMachine *pMachine /* = 0 */) 3692 { 3693 static QStringList osList = QStringList() 3694 << "Other" << "DOS" << "Netware" << "L4" << "QNX" << "JRockitVE"; 3695 3696 bool fResult = true; 3697 if ( pMachine 3698 && !pMachine->isNull() 3699 && osList.contains(pMachine->GetOSTypeId())) 3700 fResult = false; 3701 3702 return fResult; 3688 3703 } 3689 3704 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r34334 r34567 610 610 /* public static stuff */ 611 611 612 static bool shouldWarnAboutToLowVRAM(const CMachine *pMachine = 0); 612 613 static bool isDOSType (const QString &aOSTypeId); 613 614 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r33882 r34567 274 274 /* Video RAM amount test */ 275 275 quint64 needBytes = VBoxGlobal::requiredVideoMemory (&m_machine, mSlMonitors->value()); 276 if ((quint64) mSlMemory->value() * _1M < needBytes) 276 if ( vboxGlobal().shouldWarnAboutToLowVRAM(&m_machine) 277 && (quint64)mSlMemory->value() * _1M < needBytes) 277 278 { 278 279 aWarning = tr ( 279 "you have assigned less than <b>%1</b> of video memory which is "280 "the minimum amount required to switch the virtual machine to "281 "fullscreen or seamless mode.")280 "you have assigned less than <b>%1</b> of video memory which is " 281 "the minimum amount required to switch the virtual machine to " 282 "fullscreen or seamless mode.") 282 283 .arg (vboxGlobal().formatSize (needBytes, 0, VBoxDefs::FormatSize_RoundUp)); 283 284 }
Note:
See TracChangeset
for help on using the changeset viewer.