VirtualBox

Changeset 104820 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 30, 2024 9:41:59 AM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163398
Message:

Main: Also make use of PlatformPropertiesImpl::s_getSupportedVRAMRange() in GraphicsAdapter::setVRAMSize(); also take the SchemaDefs in PlatformPropertiesImpl::s_getSupportedVRAMRange() into account [build fix]. bugref:​10693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp

    r104819 r104820  
    904904
    905905    /* Finally, clamp the values to our schema definitions before returning. */
    906     cbMin = RT_CLAMP(cbMin, (size_t)SchemaDefs::MinGuestVRAM, (size_t)SchemaDefs::MaxGuestVRAM);
    907     cbMax = RT_CLAMP(cbMax, (size_t)SchemaDefs::MinGuestVRAM, (size_t)SchemaDefs::MaxGuestVRAM);
     906    if (cbMax > SchemaDefs::MaxGuestVRAM)
     907        cbMax = SchemaDefs::MaxGuestVRAM;
    908908
    909909    *aMinMB = (ULONG)cbMin;
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