VirtualBox

Changeset 24627 in vbox for trunk/src


Ignore:
Timestamp:
Nov 13, 2009 9:16:22 AM (15 years ago)
Author:
vboxsync
Message:

QT GUI: Increased required guest VRAM size for new Windows VMs (xTracker 3545).

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r24550 r24627  
    36843684    quint64 needMBytes = needBits % (8 * _1M) ? needBits / (8 * _1M) + 1 :
    36853685                         needBits / (8 * _1M) /* convert to megabytes */;
     3686
     3687    if (aMachine)
     3688    {
     3689       QString typeId = aMachine->GetOSTypeId();
     3690       if (typeId.startsWith("Windows"))
     3691       {
     3692           /* Windows guests need offscreen VRAM too for graphics acceleration features. */
     3693           needMBytes *= 2;
     3694       }
     3695    }
    36863696
    36873697    return needMBytes * _1M;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxNewVMWzd.cpp

    r23982 r24627  
    339339    /* VRAM size - select maximum between recommended and minimum for fullscreen */
    340340    mMachine.SetVRAMSize (qMax (type.GetRecommendedVRAM(),
    341                                 (ULONG) (VBoxGlobal::requiredVideoMemory() / _1M)));
     341                                (ULONG) (VBoxGlobal::requiredVideoMemory(&mMachine) / _1M)));
    342342
    343343    /* Enabling audio by default */
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