- PIXELFORMATDESCRIPTOR* ppfd, pfd;
- int flags, pixelformat;
-
- /*
- * Check if the window seems valid
- */
- freeglut_return_val_if_fail( window != NULL, 0 );
-
- /*
- * The pixel format should allow us to draw to the window using OpenGL
- */
- flags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL;
-
- /*
- * It might be the case for us to use double buffering
- */
- if( fgState.DisplayMode & GLUT_DOUBLE )
- flags |= PFD_DOUBLEBUFFER;
-
- /*
- * Specify which pixel format do we opt for...
- */
-# pragma message( "fgSetupPixelFormat(): there is still some work to do here!" )
-
- pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR);
- pfd.nVersion = 1;
- pfd.dwFlags = flags;
- pfd.iPixelType = PFD_TYPE_RGBA;
- pfd.cColorBits = 24;
- pfd.cRedBits = 0;
- pfd.cRedShift = 0;
- pfd.cGreenBits = 0;
- pfd.cGreenShift = 0;
- pfd.cBlueBits = 0;
- pfd.cBlueShift = 0;
- pfd.cAlphaBits = 0;
- pfd.cAlphaShift = 0;
- pfd.cAccumBits = 0;
- pfd.cAccumRedBits = 0;
- pfd.cAccumGreenBits = 0;
- pfd.cAccumBlueBits = 0;
- pfd.cAccumAlphaBits = 0;
+#if TARGET_HOST_WINCE
+ return GL_TRUE;
+#else
+ PIXELFORMATDESCRIPTOR* ppfd, pfd;
+ int flags, pixelformat;
+
+ freeglut_return_val_if_fail( window != NULL, 0 );
+ flags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL;
+ if( fgState.DisplayMode & GLUT_DOUBLE )
+ flags |= PFD_DOUBLEBUFFER;
+
+#if defined(_MSC_VER)
+#pragma message( "fgSetupPixelFormat(): there is still some work to do here!" )
+#endif
+
+ /* Specify which pixel format do we opt for... */
+ pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR);
+ pfd.nVersion = 1;
+ pfd.dwFlags = flags;
+ pfd.iPixelType = PFD_TYPE_RGBA;
+ pfd.cColorBits = 24;
+ pfd.cRedBits = 0;
+ pfd.cRedShift = 0;
+ pfd.cGreenBits = 0;
+ pfd.cGreenShift = 0;
+ pfd.cBlueBits = 0;
+ pfd.cBlueShift = 0;
+ pfd.cAlphaBits = 0;
+ pfd.cAlphaShift = 0;
+ pfd.cAccumBits = 0;
+ pfd.cAccumRedBits = 0;
+ pfd.cAccumGreenBits = 0;
+ pfd.cAccumBlueBits = 0;
+ pfd.cAccumAlphaBits = 0;