- MGR: Filter project list icons so that the icon will only be displayed

if the volunteer has the hardware to go with it.
        
    clientgui/
        ProjectInfoPage.cpp

svn path=/trunk/boinc/; revision=19757
This commit is contained in:
Rom Walton 2009-12-01 17:42:12 +00:00
parent 67bc7dfc9b
commit ed00217f33
2 changed files with 12 additions and 4 deletions

View File

@ -9593,3 +9593,11 @@ David 1 Dec 2009
sched, lib/
Makefile.am
Rom 1 Dec 2009
- MGR: Filter project list icons so that the icon will only be displayed
if the volunteer has the hardware to go with it.
clientgui/
ProjectInfoPage.cpp

View File

@ -296,22 +296,22 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
wxString strRootProjectPlatform = strProjectPlatform.SubString(0, strProjectPlatform.Find(_T("[")) - 1);
if (strProjectPlatform.Find(_T("[cuda")) != wxNOT_FOUND) {
bProjectSupportsNvidiaGPU = true;
if ((pDoc->state.have_cuda) && (strClientPlatform == strRootProjectPlatform)) {
bProjectSupportsNvidiaGPU = true;
bSupportedPlatformFound = true;
}
}
if (strProjectPlatform.Find(_T("[ati")) != wxNOT_FOUND) {
bProjectSupportsATIGPU = true;
if ((pDoc->state.have_ati) && (strClientPlatform == strRootProjectPlatform)) {
bProjectSupportsATIGPU = true;
bSupportedPlatformFound = true;
}
}
if (strProjectPlatform.Find(_T("[mt")) != wxNOT_FOUND) {
bProjectSupportsMulticore = true;
if (strClientPlatform == strRootProjectPlatform) {
if ((pDoc->host.p_ncpus >= 4) && (strClientPlatform == strRootProjectPlatform)) {
bProjectSupportsMulticore = true;
bSupportedPlatformFound = true;
}
}