Changeset 33599 in vbox
- Timestamp:
- Oct 29, 2010 11:14:14 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 67210
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r33542 r33599 147 147 ifdef VBOX_WITH_WDDM 148 148 VirtualBox_DEFS += VBOX_WITH_WDDM 149 endif 150 ifdef VBOX_WITH_CRHGSMI 151 VirtualBox_DEFS += VBOX_WITH_CRHGSMI 149 152 endif 150 153 ifdef VBOX_BLEEDING_EDGE -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r32814 r33599 573 573 } 574 574 575 #if def VBOX_WITH_VIDEOHWACCEL575 #if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_WITH_CRHGSMI) 576 576 /* 2D Video Acceleration is available for Windows guests only: */ 577 577 if (pPage == m_pSelector->idToPage(VMSettingsPage_Display)) … … 582 582 VBoxVMSettingsDisplay *pDisplayPage = 583 583 qobject_cast<VBoxVMSettingsDisplay*>(m_pSelector->idToPage(VMSettingsPage_Display)); 584 #ifdef VBOX_WITH_CRHGSMI 585 if (pGeneralPage && pDisplayPage && 586 pDisplayPage->isAcceleration3DSelected() && !pGeneralPage->isWddmSupportedForOSType()) 587 { 588 int vramMb = pDisplayPage->getVramSizeMB(); 589 int requiredVramMb = pDisplayPage->getMinVramSizeMBForWddm3D(); 590 if (vramMb < requiredVramMb) 591 { 592 strWarning = tr( 593 "you have 3D Acceleration enabled for OS type using the WDDM Video Driver. " 594 "To make 3D work OK please set guest VRAM size to <b>%1</b>." 595 ).arg (vboxGlobal().formatSize (requiredVramMb * _1M, 0, VBoxDefs::FormatSize_RoundUp)); 596 return true; 597 } 598 } 599 #endif 600 #ifdef VBOX_WITH_VIDEOHWACCEL 584 601 if (pGeneralPage && pDisplayPage && 585 602 pDisplayPage->isAcceleration2DVideoSelected() && !pGeneralPage->isWindowsOSTypeSelected()) … … 590 607 return true; 591 608 } 609 #endif 592 610 } 593 611 #endif /* VBOX_WITH_VIDEOHWACCEL */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsDisplay.cpp
r33386 r33599 125 125 #endif 126 126 127 #ifdef VBOX_WITH_CRHGSMI 128 bool VBoxVMSettingsDisplay::isAcceleration3DSelected() const 129 { 130 return mCb3D->isChecked(); 131 } 132 133 int VBoxVMSettingsDisplay::getMinVramSizeMBForWddm3D() const 134 { 135 return 128; 136 } 137 138 int VBoxVMSettingsDisplay::getVramSizeMB() const 139 { 140 return mSlMemory->value(); 141 } 142 #endif 143 127 144 void VBoxVMSettingsDisplay::getFrom (const CMachine &aMachine) 128 145 { … … 206 223 #ifdef VBOX_WITH_VIDEOHWACCEL 207 224 connect (mCb2DVideo, SIGNAL (stateChanged (int)), 225 mValidator, SLOT (revalidate())); 226 #endif 227 #ifdef VBOX_WITH_CRHGSMI 228 connect (mCb3D, SIGNAL (stateChanged (int)), 208 229 mValidator, SLOT (revalidate())); 209 230 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsDisplay.h
r32814 r33599 35 35 #ifdef VBOX_WITH_VIDEOHWACCEL 36 36 bool isAcceleration2DVideoSelected() const; 37 #endif 38 39 #ifdef VBOX_WITH_CRHGSMI 40 bool isAcceleration3DSelected() const; 41 int getMinVramSizeMBForWddm3D() const; 42 int getVramSizeMB() const; 37 43 #endif 38 44 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsGeneral.cpp
r32814 r33599 57 57 { 58 58 return mOSTypeSelector->type().GetFamilyId() == "Windows"; 59 } 60 #endif 61 62 #ifdef VBOX_WITH_CRHGSMI 63 bool VBoxVMSettingsGeneral::isWddmSupportedForOSType() const 64 { 65 return mOSTypeSelector->type().GetId() == "Windows Vista" 66 || mOSTypeSelector->type().GetId() == "Windows 7"; 59 67 } 60 68 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsGeneral.h
r32814 r33599 39 39 #endif 40 40 41 #ifdef VBOX_WITH_CRHGSMI 42 bool isWddmSupportedForOSType() const; 43 #endif 44 41 45 protected: 42 46
Note:
See TracChangeset
for help on using the changeset viewer.