Another typecast bugfix from John Fay
authorJ.C. Jones <jc@insufficient.coffee>
Fri, 29 Aug 2003 15:49:40 +0000 (15:49 +0000)
committerJ.C. Jones <jc@insufficient.coffee>
Fri, 29 Aug 2003 15:49:40 +0000 (15:49 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@173 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_main.c

index 423e23a..3874517 100644 (file)
@@ -301,9 +301,9 @@ static void fghCheckTimers( void )
     /*
      * For every timer that is waiting for triggering
      */
-    for( timer = (SFG_Timer *)fgState.Timers.First; timer; timer = next )
+    for( timer = (SFG_Timer *)fgState.Timers.First; timer; timer = (SFG_Timer *)next )
     {
-       next = (SFG_Timer *)timer->Node.Next;
+             next = (SFG_Timer *)timer->Node.Next;
 
         /*
          * Check for the timeout:
@@ -1004,9 +1004,8 @@ void FGAPIENTRY glutMainLoopEvent( void )
 
     /*
      * No messages in the queue, which means we are idling...
-     * Don't call this if there is a menu active
      */
-    if( ( fgState.IdleCallback != NULL ) && ( fgState.ActiveMenus == 0 ) )
+    if ( fgState.IdleCallback != NULL )
         fgState.IdleCallback();
 
     /*
@@ -1051,9 +1050,8 @@ void FGAPIENTRY glutMainLoopEvent( void )
 
     /*
      * No messages in the queue, which means we are idling...
-     * Don't call this if there is a menu active
      */
-    if( ( fgState.IdleCallback != NULL ) && ( fgState.ActiveMenus == 0 ) )
+    if ( fgState.IdleCallback != NULL )
       fgState.IdleCallback();
 
     /*