VirtualBox

Changeset 34567 in vbox


Ignore:
Timestamp:
Dec 1, 2010 1:20:13 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68361
Message:

FE/Qt4: Do not warn about to low VRAM settings for all OS's.

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  
    36863686
    36873687    return QString ("%1 %2").arg (number).arg (Suffixes [suffix]);
     3688}
     3689
     3690/* static */
     3691bool 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;
    36883703}
    36893704
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r34334 r34567  
    610610    /* public static stuff */
    611611
     612    static bool shouldWarnAboutToLowVRAM(const CMachine *pMachine = 0);
    612613    static bool isDOSType (const QString &aOSTypeId);
    613614
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r33882 r34567  
    274274    /* Video RAM amount test */
    275275    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)
    277278    {
    278279        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.")
    282283            .arg (vboxGlobal().formatSize (needBytes, 0, VBoxDefs::FormatSize_RoundUp));
    283284    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette