Changeset 106810 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 31, 2024 2:41:09 PM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 165711
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r106149 r106810 304 304 : m_strGuestOSTypeId(QString()) 305 305 #ifdef VBOX_WITH_3D_ACCELERATION 306 , m_f WddmModeSupported(false)306 , m_f3DAccelerationSupported(false) 307 307 #endif 308 308 , m_enmGraphicsControllerTypeRecommended(KGraphicsControllerType_Null) … … 340 340 m_pEditorVideoMemorySize->setGuestOSTypeId(m_strGuestOSTypeId); 341 341 342 #ifdef VBOX_WITH_3D_ACCELERATION343 /* Check if WDDM mode supported by the guest OS type: */344 m_fWddmModeSupported = UIGuestOSTypeHelpers::isWddmCompatibleOsType(m_strGuestOSTypeId);345 m_pEditorVideoMemorySize->set3DAccelerationSupported(m_fWddmModeSupported);346 #endif /* VBOX_WITH_3D_ACCELERATION */347 342 /* Acquire recommended graphics controller type: */ 348 343 m_enmGraphicsControllerTypeRecommended = 349 344 gpGlobalSession->guestOSTypeManager().getRecommendedGraphicsController(m_strGuestOSTypeId); 345 350 346 /* Revalidate: */ 351 347 revalidate(); … … 640 636 bool fPass = true; 641 637 638 /* Validation prerequisites: */ 639 #ifdef VBOX_WITH_3D_ACCELERATION 640 /* Check whether WDDM mode supported by the guest OS type: */ 641 m_f3DAccelerationSupported = UIGuestOSTypeHelpers::isWddmCompatibleOsType(m_strGuestOSTypeId); 642 643 /* Pass whether 3D acceleration is supported into Video Memory Editor: */ 644 m_pEditorVideoMemorySize->set3DAccelerationSupported(m_f3DAccelerationSupported); 645 /* Enable/disable 3D acceleration check-box accordingly: */ 646 m_pEditorDisplayScreenFeatures->setEnabled(isMachineOffline() && m_f3DAccelerationSupported); 647 #endif /* VBOX_WITH_3D_ACCELERATION */ 648 642 649 /* Screen tab: */ 643 650 { … … 660 667 #ifdef VBOX_WITH_3D_ACCELERATION 661 668 /* 3D acceleration video RAM amount test: */ 662 else if (m_ pEditorDisplayScreenFeatures->isEnabled3DAcceleration() && m_fWddmModeSupported)669 else if (m_f3DAccelerationSupported && m_pEditorDisplayScreenFeatures->isEnabled3DAcceleration()) 663 670 { 664 671 uNeedBytes = qMax(uNeedBytes, (quint64) 128 * _1M); … … 680 687 { 681 688 #ifdef VBOX_WITH_3D_ACCELERATION 682 if (m_ pEditorDisplayScreenFeatures->isEnabled3DAcceleration())689 if (m_f3DAccelerationSupported && m_pEditorDisplayScreenFeatures->isEnabled3DAcceleration()) 683 690 message.second << tr("The virtual machine is configured to use 3D acceleration. This will work only if you " 684 691 "pick a different graphics controller (%1). Either disable 3D acceleration or switch " -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r106061 r106810 156 156 157 157 /** Holds the guest OS type. */ 158 QString m_strGuestOSTypeId;159 #ifdef VBOX_WITH_3D_ACCELERATION 160 /** Holds whether the guest OS supports WDDM. */161 bool m_fWddmModeSupported;158 QString m_strGuestOSTypeId; 159 #ifdef VBOX_WITH_3D_ACCELERATION 160 /** Holds whether 3D acceleration supported. */ 161 bool m_f3DAccelerationSupported; 162 162 #endif 163 163 /** Holds recommended graphics controller type. */
Note:
See TracChangeset
for help on using the changeset viewer.