Changeset 39800 in vbox
- Timestamp:
- Jan 18, 2012 5:54:06 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 75774
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r39666 r39800 19 19 #include <VBox/vd.h> 20 20 #include <VBox/version.h> 21 #include <stdio.h> 21 22 22 23 #include "VBoxUtils.h" … … 281 282 , mRecompileSupervisor(false) 282 283 , mRecompileUser(false) 283 , mVerString ("1.0") 284 , mVerString("1.0") 285 , m3DAvailable(-1) 284 286 { 285 287 } … … 391 393 } 392 394 395 bool VBoxGlobal::is3DAvailable() 396 { 397 if (m3DAvailable < 0) 398 m3DAvailable = virtualBox().GetHost().GetAcceleration3DAvailable(); 399 return m3DAvailable; 400 } 401 393 402 /** 394 403 * Sets the new global settings and saves them to the VirtualBox server. … … 1712 1721 } 1713 1722 1714 QString acc3d = aMachine.GetAccelerate3DEnabled()1723 QString acc3d = is3DAvailable() && aMachine.GetAccelerate3DEnabled() 1715 1724 ? tr ("Enabled", "details report (3D Acceleration)") 1716 1725 : tr ("Disabled", "details report (3D Acceleration)"); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r38977 r39800 150 150 QWidget *mainWindow() const { return mMainWindow; } 151 151 152 bool is3DAvailable(); 153 152 154 #ifdef VBOX_GUI_WITH_PIDFILE 153 155 void createPidfile(); … … 860 862 QString mVerString; 861 863 QString mBrandingConfig; 864 865 int m3DAvailable; 862 866 863 867 QList <QString> mFamilyIDs; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp
r39546 r39800 840 840 accel << tr("2D Video", "details report"); 841 841 #endif /* VBOX_WITH_VIDEOHWACCEL */ 842 if (m_machine.GetAccelerate3DEnabled()) 842 if ( vboxGlobal().is3DAvailable() 843 && m_machine.GetAccelerate3DEnabled()) 843 844 accel << tr("3D", "details report"); 844 845 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r38311 r39800 523 523 mLeMonitors->setEnabled(isMachineOffline()); 524 524 mLbOptions->setEnabled(isMachineOffline()); 525 mCb3D->setEnabled(isMachineOffline() && vboxGlobal().virtualBox().GetHost().GetAcceleration3DAvailable()); 525 if (vboxGlobal().is3DAvailable()) 526 mCb3D->setEnabled(isMachineOffline()); 527 else 528 { 529 mCb3D->setEnabled(false); 530 mCb3D->setChecked(false); 531 } 526 532 #ifdef VBOX_WITH_VIDEOHWACCEL 527 533 mCb2DVideo->setEnabled(isMachineOffline() && VBoxGlobal::isAcceleration2DVideoAvailable());
Note:
See TracChangeset
for help on using the changeset viewer.