Applied John's updated ReadConfigFile() changes to the fractals demos.
[freeglut] / src / freeglut_callbacks.c
index b741a0c..90baf10 100644 (file)
 void FGAPIENTRY glutDisplayFunc( void (* callback)( void ) )
 {
     SET_CALLBACK( Display );
+
+    /*
+     * Force a redisplay with the new callback
+     */
+    fgStructure.Window->State.Redisplay = TRUE;
+
 }
 
 /*
@@ -100,7 +106,7 @@ void FGAPIENTRY glutTimerFunc( unsigned int timeOut, void (* callback)( int ), i
     /*
      * 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