timers internally now use 64bit unsigned int, if available
[freeglut] / src / Common / freeglut_window.c
index 9610a38..bcbe44d 100644 (file)
 #include <GL/freeglut.h>
 #include "freeglut_internal.h"
 
-#if defined(_WIN32_WCE)
-#   include <Aygshell.h>
-#   ifdef FREEGLUT_LIB_PRAGMAS
-#       pragma comment( lib, "Aygshell.lib" )
-#   endif
-#endif /* defined(_WIN32_WCE) */
-
-
 /*
  * TODO BEFORE THE STABLE RELEASE:
  *
  *  glutCreateSubWindow()   -- Check when default position and size is {-1,-1}
  *  glutDestroyWindow()     -- check the Win32 version
  *  glutSetWindow()         -- check the Win32 version
- *  glutGetWindow()         -- OK
  *  glutSetWindowTitle()    -- check the Win32 version
  *  glutSetIconTitle()      -- check the Win32 version
  *  glutShowWindow()        -- check the Win32 version
  *  glutHideWindow()        -- check the Win32 version
  *  glutIconifyWindow()     -- check the Win32 version
- *  glutReshapeWindow()     -- check the Win32 version
- *  glutPositionWindow()    -- check the Win32 version
  *  glutPushWindow()        -- check the Win32 version
  *  glutPopWindow()         -- check the Win32 version
  */
@@ -156,11 +145,13 @@ void fgOpenWindow( SFG_Window* window, const char* title,
     window->Window.DoubleBuffered =
         ( fgState.DisplayMode & GLUT_DOUBLE ) ? 1 : 0;
 
+#ifndef EGL_VERSION_1_0  /* No glDrawBuffer/glReadBuffer in GLES */
     if ( ! window->Window.DoubleBuffered )
     {
         glDrawBuffer ( GL_FRONT );
         glReadBuffer ( GL_FRONT );
     }
+#endif
 }
 
 /*
@@ -261,7 +252,7 @@ void FGAPIENTRY glutDestroyWindow( int windowID )
 }
 
 /*
- * This function selects the current window
+ * This function selects the specified window as the current window
  */
 void FGAPIENTRY glutSetWindow( int ID )
 {