Another typecast bugfix from John Fay

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@173 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
puggles 2003-08-29 15:49:40 +00:00
parent af8a4e52ea
commit c27c9a8631

View File

@ -301,7 +301,7 @@ static void fghCheckTimers( void )
/* /*
* For every timer that is waiting for triggering * 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;
@ -1004,9 +1004,8 @@ void FGAPIENTRY glutMainLoopEvent( void )
/* /*
* No messages in the queue, which means we are idling... * 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(); fgState.IdleCallback();
/* /*
@ -1051,9 +1050,8 @@ void FGAPIENTRY glutMainLoopEvent( void )
/* /*
* No messages in the queue, which means we are idling... * 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(); fgState.IdleCallback();
/* /*