VirtualBox

Changeset 107545 in vbox for trunk


Ignore:
Timestamp:
Jan 8, 2025 5:58:58 PM (10 days ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10767: Reverting r166612 as it was based on wrong assumption.

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

Legend:

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

    r107543 r107545  
    4646
    4747#ifdef VBOX_WITH_3D_ACCELERATION
    48 bool UIGuestOSTypeHelpers::isXpdmCompatibleOsType(const QString &strGuestOSTypeId)
    49 {
    50     return    strGuestOSTypeId.startsWith(GUEST_OS_ID_STR_PARTIAL("WindowsXP"))
    51            || strGuestOSTypeId.startsWith(GUEST_OS_ID_STR_PARTIAL("WindowsVista"))
    52            || strGuestOSTypeId.startsWith(GUEST_OS_ID_STR_PARTIAL("Windows7"))
    53            || strGuestOSTypeId.startsWith(GUEST_OS_ID_STR_PARTIAL("WindowsNT4"))
    54            || strGuestOSTypeId.startsWith(GUEST_OS_ID_STR_PARTIAL("Windows2000"));
    55 }
    56 
    5748bool UIGuestOSTypeHelpers::isWddmCompatibleOsType(const QString &strGuestOSTypeId)
    5849{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h

    r107543 r107545  
    4444{
    4545#ifdef VBOX_WITH_3D_ACCELERATION
    46     /** Returns whether guest OS type with passed @a strGuestOSTypeId is XPDM compatible. */
    47     SHARED_LIBRARY_STUFF bool isXpdmCompatibleOsType(const QString &strGuestOSTypeId);
    4846    /** Returns whether guest OS type with passed @a strGuestOSTypeId is WDDM compatible. */
    4947    SHARED_LIBRARY_STUFF bool isWddmCompatibleOsType(const QString &strGuestOSTypeId);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r107543 r107545  
    639639    /* Validation prerequisites: */
    640640#ifdef VBOX_WITH_3D_ACCELERATION
    641     /* Special handling for Windows guests: */
    642     if (m_strGuestOSTypeId.startsWith("Windows"))
    643     {
    644         switch (graphicsControllerTypeCurrent())
    645         {
    646             case KGraphicsControllerType_VBoxVGA:
    647                 m_f3DAccelerationSupported = UIGuestOSTypeHelpers::isXpdmCompatibleOsType(m_strGuestOSTypeId);
    648                 break;
    649             case KGraphicsControllerType_VBoxSVGA:
    650                 m_f3DAccelerationSupported = UIGuestOSTypeHelpers::isWddmCompatibleOsType(m_strGuestOSTypeId);
    651                 break;
    652             default:
    653                 break;
    654         }
    655     }
    656     /* For the rest of guests we are using VBoxVGA (old Linuxes) or VMSVGA,
    657      * it's difficult to draw the line between various guest OS types, enabling 3D always: */
    658     else
    659     {
    660         switch (graphicsControllerTypeCurrent())
    661         {
    662             case KGraphicsControllerType_VBoxVGA:
    663             case KGraphicsControllerType_VMSVGA:
    664                 m_f3DAccelerationSupported = true;
    665                 break;
    666             default:
    667                 m_f3DAccelerationSupported = false;
    668                 break;
    669         }
    670     }
     641    /* Check whether WDDM mode supported by the guest OS type: */
     642    m_f3DAccelerationSupported = UIGuestOSTypeHelpers::isWddmCompatibleOsType(m_strGuestOSTypeId);
    671643
    672644    /* Additionally make sure 3D acceleration is one of the features for current graphical controller: */
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