progs/demos: fix glut initialization calls
Remove glutInitWindowPosition() calls to play nicer with window managers. Move glutInitWindowSize() calls before glutInit() so the the default window size can be overridden by the -geometry cmd line option.
This commit is contained in:
@@ -427,10 +427,10 @@ int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
|
||||
glutInitWindowSize(300, 300);
|
||||
glutInit(&argc, argv);
|
||||
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH | GLUT_MULTISAMPLE);
|
||||
glutInitWindowPosition(0, 0);
|
||||
glutInitWindowSize(300, 300);
|
||||
|
||||
for (i=1; i<argc; i++) {
|
||||
if(!strcmp("-noms", argv[i])) {
|
||||
|
Reference in New Issue
Block a user