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:
Brian Paul
2009-12-18 08:12:55 -07:00
parent c8de081dc1
commit 263f4322e7
45 changed files with 54 additions and 106 deletions

View File

@@ -503,10 +503,9 @@ int main( int argc, char **argv )
usage();
glutInitWindowSize( 400, 400 );
glutInit( &argc, argv );
glutInitDisplayMode( GLUT_SINGLE | GLUT_RGB );
glutInitWindowPosition(0, 0);
glutInitWindowSize( 400, 400 );
glutCreateWindow( argv[0] );
/* GH: Bit of a hack...