glutFullScreen();To reset the display to a window when the user chooses, we use the GLUT functions for positoning and sizing the window as we done in main. In particular, we make the following two calls:
glutPositionWindow(10, 10); glutReshapeWindow(500, 500);