git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@736
7f0cb862-5218-0410-a997-
914c9d46530a
static int num_trans ;
static AffineTrans *affine ;
+/* Flag telling us to keep executing the main loop */
+static int continue_in_main_loop = 1;
+
/* the window title */
char window_title [ 80 ] ;
switch (key) {
case 27: /* Escape key */
- glutLeaveMainLoop () ;
+ continue_in_main_loop = 0 ;
break;
case '+' :
glutSpecialFunc(Special);
glutDisplayFunc(Display);
- glutMainLoop();
+#ifdef WIN32
+#endif
+
+ while ( continue_in_main_loop )
+ glutMainLoopEvent();
printf ( "Back from the 'freeglut' main loop\n" ) ;