diff --git a/checkin_notes b/checkin_notes index f073f5e791..9c966b62b1 100644 --- a/checkin_notes +++ b/checkin_notes @@ -185,3 +185,11 @@ David 26 Sept 2006 uppercase/ upper_case.C + +David 4 Nov 2006 + - uppercase: call boinc_graphics_possible() instead of + using a bunch of mysterious inline code. + This is supposed to be a good example, not a bad one. + + uppercase/ + upper_case.C diff --git a/uppercase/upper_case.C b/uppercase/upper_case.C index dc61e338aa..35eab0f7af 100755 --- a/uppercase/upper_case.C +++ b/uppercase/upper_case.C @@ -196,7 +196,6 @@ void worker() { int main(int argc, char **argv) { int i; int retval = 0; - bool nographics_flag = false; boinc_init_diagnostics( BOINC_DIAG_DUMPCALLSTACKENABLED | @@ -206,30 +205,6 @@ int main(int argc, char **argv) { BOINC_DIAG_REDIRECTSTDERR ); - // Write through to disk - setbuf(stderr, 0); - -#ifdef _WIN32 - // Attempt to load the dlls that are required to display graphics, if - // any of them fail do not start the application in graphics mode. - if (FAILED(__HrLoadAllImportsForDll("GDI32.dll"))) { - fprintf( stderr, "Failed to load GDI32.DLL...\n" ); - nographics_flag = true; - } - if (FAILED(__HrLoadAllImportsForDll("OPENGL32.dll"))) { - fprintf( stderr, "Failed to load OPENGL32.DLL...\n" ); - nographics_flag = true; - } - if (FAILED(__HrLoadAllImportsForDll("GLU32.dll"))) { - fprintf( stderr, "Failed to load GLU32.DLL...\n" ); - nographics_flag = true; - } -#endif - - - // NOTE: if you change output here, remember to change the output that - // test_uc.py pattern-matches against. - for (i=0; i