From c27c9a86316fb9ddf3c7d2227f913a6a911f9812 Mon Sep 17 00:00:00 2001 From: puggles Date: Fri, 29 Aug 2003 15:49:40 +0000 Subject: [PATCH] Another typecast bugfix from John Fay git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@173 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/freeglut/freeglut/src/freeglut_main.c b/freeglut/freeglut/src/freeglut_main.c index 423e23a..3874517 100644 --- a/freeglut/freeglut/src/freeglut_main.c +++ b/freeglut/freeglut/src/freeglut_main.c @@ -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(); /*