Changeset 22157 in vbox for trunk/src/VBox
- Timestamp:
- Aug 11, 2009 11:19:58 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r22144 r22157 753 753 754 754 #ifdef VBOX_WITH_VIDEOHWACCEL 755 static bool isAcceleration2DVideoAvailable() { /*TODO: */ return true; }755 static bool isAcceleration2DVideoAvailable() { /* TODO: */ return true; } 756 756 VBoxDefs::RenderMode vmAcceleration2DVideoRenderMode() { return VBoxDefs::QGLMode; } 757 757 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r22144 r22157 810 810 811 811 #ifdef VBOX_WITH_VIDEOHWACCEL 812 /* need to force the QGL framebuffer in case 2D Video Acceleration is enabled && supported */ 813 if(cmachine.GetAccelerate2DVideoEnabled() && VBoxGlobal::isAcceleration2DVideoAvailable()) 814 { 815 mode = vboxGlobal().vmAcceleration2DVideoRenderMode(); 816 } 812 /* Need to force the QGL framebuffer in case 2D Video Acceleration is supported & enabled */ 813 if (VBoxGlobal::isAcceleration2DVideoAvailable() && cmachine.GetAccelerate2DVideoEnabled()) 814 mode = vboxGlobal().vmAcceleration2DVideoRenderMode(); 817 815 #endif 818 816 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r22144 r22157 1561 1561 1562 1562 item += QString (sSectionItemTpl2) 1563 1564 rows++;1563 .arg (tr ("2D Video Acceleration", "details report"), acc2dVideo); 1564 ++ rows; 1565 1565 #endif 1566 1566 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsDisplay.cpp
r22143 r22157 96 96 97 97 #ifndef VBOX_WITH_VIDEOHWACCEL 98 mCb2DVideo->set Enabled(false);98 mCb2DVideo->setVisible (false); 99 99 #endif 100 100 … … 117 117 118 118 #ifdef VBOX_WITH_VIDEOHWACCEL 119 bool is2DVideoAccelerationSupported = VBoxGlobal::isAcceleration2DVideoAvailable(); 120 mCb2DVideo->setEnabled (is2DVideoAccelerationSupported); 119 mCb2DVideo->setEnabled (VBoxGlobal::isAcceleration2DVideoAvailable()); 121 120 mCb2DVideo->setChecked (mMachine.GetAccelerate2DVideoEnabled()); 122 #else123 mCb2DVideo->setEnabled (false);124 121 #endif 125 122 … … 170 167 connect (mCb3D, SIGNAL (stateChanged (int)), 171 168 mValidator, SLOT (revalidate())); 172 #ifdef VBOX_WITH_VIDEOHWACCEL173 connect (mCb2DVideo, SIGNAL (stateChanged (int)),174 mValidator, SLOT (revalidate()));175 #endif176 169 connect (mCbVRDP, SIGNAL (toggled (bool)), 177 170 mValidator, SLOT (revalidate()));
Note:
See TracChangeset
for help on using the changeset viewer.