cleaning up mixed tabs and spaces
[freeglut] / src / fg_display.c
index 9b8bd42..7688015 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * freeglut_display.c
+ * fg_display.c
  *
  * Display message posting, context buffer swapping.
  *
@@ -42,12 +42,12 @@ void FGAPIENTRY glutPostRedisplay( void )
 {
     FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutPostRedisplay" );
     if ( ! fgStructure.CurrentWindow )
-       {
+    {
       fgError ( " ERROR:  Function <%s> called"
                 " with no current window defined.", "glutPostRedisplay" ) ;
-       }
+    }
 
-    fgStructure.CurrentWindow->State.Redisplay = GL_TRUE;
+    fgStructure.CurrentWindow->State.WorkMask |= GLUT_DISPLAY_WORK;
 }
 
 /*
@@ -98,7 +98,7 @@ void FGAPIENTRY glutPostWindowRedisplay( int windowID )
     FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutPostWindowRedisplay" );
     window = fgWindowByID( windowID );
     freeglut_return_if_fail( window );
-    window->State.Redisplay = GL_TRUE;
+    window->State.WorkMask |= GLUT_DISPLAY_WORK;
 }
 
 /*** END OF FILE ***/