- Timestamp:
- Nov 13, 2009 9:16:22 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r24550 r24627 3684 3684 quint64 needMBytes = needBits % (8 * _1M) ? needBits / (8 * _1M) + 1 : 3685 3685 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 } 3686 3696 3687 3697 return needMBytes * _1M; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxNewVMWzd.cpp
r23982 r24627 339 339 /* VRAM size - select maximum between recommended and minimum for fullscreen */ 340 340 mMachine.SetVRAMSize (qMax (type.GetRecommendedVRAM(), 341 (ULONG) (VBoxGlobal::requiredVideoMemory( ) / _1M)));341 (ULONG) (VBoxGlobal::requiredVideoMemory(&mMachine) / _1M))); 342 342 343 343 /* Enabling audio by default */
Note:
See TracChangeset
for help on using the changeset viewer.