example_app: Set backwards_compatible_graphics" flag

svn path=/trunk/boinc_samples/; revision=13664
This commit is contained in:
Charlie Fenton 2007-09-26 02:27:51 +00:00
parent 0bd961780d
commit 1983c90952
1 changed files with 6 additions and 1 deletions

View File

@ -121,6 +121,7 @@ int main(int argc, char **argv) {
char input_path[512], output_path[512], chkpt_path[512];
MFILE out;
FILE* state, *infile;
BOINC_OPTIONS options;
for (i=0; i<argc; i++) {
if (!strcmp(argv[i], "-early_exit")) early_exit = true;
@ -132,7 +133,11 @@ int main(int argc, char **argv) {
}
}
retval = boinc_init();
memset(&options, 0, sizeof(options));
boinc_options_defaults(options);
options.backwards_compatible_graphics = true;
retval = boinc_init_options(&options);
if (retval) exit(retval);
// open the input file (resolve logical name first)