void FGAPIENTRY glutDisplayFunc( void (* callback)( void ) )
{
SET_CALLBACK( Display );
+
+ /*
+ * Force a redisplay with the new callback
+ */
+ fgStructure.Window->State.Redisplay = TRUE;
+
}
/*
/*
* Create a new freeglut timer hook structure
*/
- timer = calloc( sizeof(SFG_Timer), 1 );
+ timer = (SFG_Timer *)calloc( sizeof(SFG_Timer), 1 );
/*
* Remember the callback address and timer hook's ID