- Timestamp:
- Oct 12, 2009 12:32:56 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53400
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxVMSettingsDisplay.h
r19664 r23685 37 37 VBoxVMSettingsDisplay(); 38 38 39 #ifdef VBOX_WITH_VIDEOHWACCEL 40 bool isAcceleration2DVideoSelected() const; 41 #endif 42 39 43 protected: 40 44 -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxVMSettingsGeneral.h
r19837 r23685 39 39 bool is64BitOSTypeSelected() const; 40 40 41 #ifdef VBOX_WITH_VIDEOHWACCEL 42 bool isWindowsOSTypeSelected() const; 43 #endif 44 41 45 protected: 42 46 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSettingsDialogSpecific.cpp
r23282 r23685 405 405 mMachine.SetHWVirtExEnabled (true); 406 406 407 #ifdef VBOX_WITH_VIDEOHWACCEL 408 /* Disable 2D Video Acceleration for non-Windows guests */ 409 if(!generalPage->isWindowsOSTypeSelected()) 410 { 411 VBoxVMSettingsDisplay *displayPage = 412 qobject_cast <VBoxVMSettingsDisplay*> (mSelector->idToPage (DisplayId)); 413 if(displayPage->isAcceleration2DVideoSelected()) 414 { 415 mMachine.SetAccelerate2DVideoEnabled(false); 416 } 417 } 418 #endif 419 407 420 /* Clear the "GUI_FirstRun" extra data key in case if the boot order 408 421 * and/or disk configuration were changed */ … … 529 542 } 530 543 544 #ifdef VBOX_WITH_VIDEOHWACCEL 545 /* 2D Video Acceleration is available for Windows guests only */ 546 if (aPage == mSelector->idToPage (DisplayId)) 547 { 548 VBoxVMSettingsGeneral *generalPage = 549 qobject_cast <VBoxVMSettingsGeneral*> (mSelector->idToPage (GeneralId)); 550 VBoxVMSettingsDisplay *displayPage = 551 qobject_cast <VBoxVMSettingsDisplay*> (mSelector->idToPage (DisplayId)); 552 if(displayPage->isAcceleration2DVideoSelected() && !generalPage->isWindowsOSTypeSelected()) 553 { 554 aWarning = tr ( 555 "you have Video 2D Acceleration enabled. As Video 2D Acceleration " 556 "is supported for Windows guests only, this feature will be disabled."); 557 return true; 558 } 559 } 560 #endif 561 531 562 return true; 532 563 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsDisplay.cpp
r23643 r23685 100 100 } 101 101 102 #ifdef VBOX_WITH_VIDEOHWACCEL 103 bool VBoxVMSettingsDisplay::isAcceleration2DVideoSelected() const 104 { 105 return mCb2DVideo->isChecked(); 106 } 107 #endif 108 102 109 void VBoxVMSettingsDisplay::getFrom (const CMachine &aMachine) 103 110 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsGeneral.cpp
r21938 r23685 55 55 return mOSTypeSelector->type().GetIs64Bit(); 56 56 } 57 58 #ifdef VBOX_WITH_VIDEOHWACCEL 59 bool VBoxVMSettingsGeneral::isWindowsOSTypeSelected() const 60 { 61 return mOSTypeSelector->type().GetFamilyId() == "Windows"; 62 } 63 #endif 57 64 58 65 void VBoxVMSettingsGeneral::getFrom (const CMachine &aMachine)
Note:
See TracChangeset
for help on using the changeset viewer.