Revert X11 fgCloseWindow to 1.38 pre-offscreen implementation.
[freeglut] / src / freeglut_display.c
index 059aa07..b29f1cc 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;
 }
 
 /*
@@ -59,7 +59,7 @@ void FGAPIENTRY glutSwapBuffers( void )
 
 #if TARGET_HOST_UNIX_X11
     glXSwapBuffers( fgDisplay.Display, fgStructure.Window->Window.Handle );
-#elif TARGET_HOST_WIN32
+#elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE
     SwapBuffers( fgStructure.Window->Window.Device );
 #endif
 
@@ -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 ***/