Include freeglut header via <GL/freeglut.h> rather than "../include/GL/freeglut.h"
[freeglut] / src / freeglut_display.c
index a2168a3..eeac0ac 100644 (file)
@@ -29,7 +29,7 @@
 #include "config.h"
 #endif
 
-#include "../include/GL/freeglut.h"
+#include <GL/freeglut.h>
 #include "freeglut_internal.h"
 
 
@@ -42,7 +42,7 @@ void FGAPIENTRY glutPostRedisplay( void )
 {
     freeglut_assert_ready;
     freeglut_assert_window;
-    fgStructure.Window->State.Redisplay = TRUE;
+    fgStructure.Window->State.Redisplay = GL_TRUE;
 }
 
 /*
@@ -53,8 +53,8 @@ void FGAPIENTRY glutSwapBuffers( void )
     freeglut_assert_ready;
     freeglut_assert_window;
 
-    glFlush();
-    if ( ! fgStructure.Window->Window.DoubleBuffered )
+    glFlush( );
+    if( ! fgStructure.Window->Window.DoubleBuffered )
         return;
 
 #if TARGET_HOST_UNIX_X11
@@ -93,7 +93,7 @@ void FGAPIENTRY glutPostWindowRedisplay( int windowID )
     freeglut_assert_ready;
     window = fgWindowByID( windowID );
     freeglut_return_if_fail( window );
-    window->State.Redisplay = TRUE;
+    window->State.Redisplay = GL_TRUE;
 }
 
 /*** END OF FILE ***/