mirror of https://github.com/BOINC/boinc.git
GFX API: change args passed to GlutInit() to be original unmodified args which were passed to the application, as specified in the man page
svn path=/trunk/boinc/; revision=14602
This commit is contained in:
parent
c38bc8ce29
commit
dd2211f1f6
|
@ -153,10 +153,8 @@ static void make_window() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void boinc_glut_init() {
|
static void boinc_glut_init(int argc, char** argv) {
|
||||||
const char* args[2] = {"BOINC", NULL};
|
int arg_count = argc;
|
||||||
int one=1;
|
|
||||||
|
|
||||||
win = 0;
|
win = 0;
|
||||||
|
|
||||||
FILE *f = boinc_fopen("gfx_info", "r");
|
FILE *f = boinc_fopen("gfx_info", "r");
|
||||||
|
@ -166,7 +164,7 @@ static void boinc_glut_init() {
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
glutInit (&one, (char**)args);
|
glutInit (&arg_count, argv);
|
||||||
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_ALPHA);
|
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_ALPHA);
|
||||||
glutInitWindowPosition(xpos, ypos);
|
glutInitWindowPosition(xpos, ypos);
|
||||||
glutInitWindowSize(width, height);
|
glutInitWindowSize(width, height);
|
||||||
|
@ -187,7 +185,7 @@ void boinc_graphics_loop(int argc, char** argv) {
|
||||||
fullscreen = true;
|
fullscreen = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
boinc_glut_init();
|
boinc_glut_init(argc, argv);
|
||||||
make_window();
|
make_window();
|
||||||
glutTimerFunc(TIMER_INTERVAL_MSEC, timer_handler, 0);
|
glutTimerFunc(TIMER_INTERVAL_MSEC, timer_handler, 0);
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|
|
@ -715,3 +715,10 @@ Rom Jan 18 2008
|
||||||
win_build/installerv2/redist/Windows/x64/
|
win_build/installerv2/redist/Windows/x64/
|
||||||
boinccas.dll
|
boinccas.dll
|
||||||
boinccas95.dll
|
boinccas95.dll
|
||||||
|
|
||||||
|
Charlie Jan 18 2008
|
||||||
|
GFX API: change args passed to GlutInit() to be original unmodified args
|
||||||
|
which were passed to the application, as specified in the man page.
|
||||||
|
|
||||||
|
api/
|
||||||
|
graphics2_unix.C
|
||||||
|
|
Loading…
Reference in New Issue