mirror of https://github.com/BOINC/boinc.git
screensaver.cpp: add comments and indentation fixes
svn path=/trunk/boinc/; revision=15885
This commit is contained in:
parent
53bd04d289
commit
17cd1c5f19
|
@ -307,6 +307,7 @@ void *CScreensaver::DataManagementProc() {
|
|||
RESULT* theResult = NULL;
|
||||
RESULT* graphics_app_result_ptr = NULL;
|
||||
RESULT previous_result;
|
||||
// previous_result_ptr = &previous_result when previous_result is valid, else NULL
|
||||
RESULT* previous_result_ptr = NULL;
|
||||
int iResultCount = 0;
|
||||
int iIndex = 0;
|
||||
|
@ -478,6 +479,7 @@ void *CScreensaver::DataManagementProc() {
|
|||
graphics_app_result_ptr = NULL;
|
||||
} else {
|
||||
#ifdef __APPLE__
|
||||
// Show ScreenSaverAppStartingMsg for GFX_STARTING_MSG_DURATION seconds
|
||||
SetError(FALSE, SCRAPPERR_BOINCAPPFOUNDGRAPHICSLOADING);
|
||||
#endif
|
||||
SetError(FALSE, SCRAPPERR_SCREENSAVERRUNNING);
|
||||
|
@ -501,9 +503,11 @@ void *CScreensaver::DataManagementProc() {
|
|||
SetError(TRUE, SCRAPPERR_BOINCNOAPPSEXECUTING);
|
||||
} else {
|
||||
// We currently do not have any graphics capable application
|
||||
SetError(TRUE, m_bV5_GFX_app_is_running ?
|
||||
SCRAPPERR_DAEMONALLOWSNOGRAPHICS : SCRAPPERR_BOINCNOGRAPHICSAPPSEXECUTING
|
||||
);
|
||||
if (m_bV5_GFX_app_is_running) {
|
||||
SetError(TRUE, SCRAPPERR_DAEMONALLOWSNOGRAPHICS);
|
||||
} else {
|
||||
SetError(TRUE, SCRAPPERR_BOINCNOGRAPHICSAPPSEXECUTING);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else { // End if ((m_hGraphicsApplication == 0) && (graphics_app_result_ptr == NULL))
|
||||
|
|
Loading…
Reference in New Issue