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:
@@ -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...
|
||||
|
Reference in New Issue
Block a user