X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_misc.c;h=932f6c7565d8ac9d0c47e0fbbd3a5ee5633bb646;hb=cb35752f171cdd1ee2319194c890d86bc6242259;hp=e232d6de8840b972ceebc4179fa227cd396e5a6f;hpb=4f58e4f75c3d57437da215f4119e9991b77272e0;p=freeglut diff --git a/src/freeglut_misc.c b/src/freeglut_misc.c index e232d6d..932f6c7 100644 --- a/src/freeglut_misc.c +++ b/src/freeglut_misc.c @@ -53,9 +53,7 @@ int FGAPIENTRY glutExtensionSupported( const char* extension ) const char *extensions, *start; const int len = strlen( extension ); - /* - * Make sure there is a current window, and thus a current context available - */ + /* Make sure there is a current window, and thus a current context available */ freeglut_assert_ready; freeglut_return_val_if_fail( fgStructure.Window != NULL, 0 ); @@ -137,10 +135,12 @@ void FGAPIENTRY glutSetKeyRepeat( int repeatMode ) */ void FGAPIENTRY glutForceJoystickFunc( void ) { +#if !TARGET_HOST_WINCE freeglut_assert_ready; freeglut_return_if_fail( fgStructure.Window != NULL ); freeglut_return_if_fail( FETCH_WCB( *( fgStructure.Window ), Joystick ) ); fgJoystickPollWindow( fgStructure.Window ); +#endif /* !TARGET_HOST_WINCE */ } /* @@ -148,9 +148,7 @@ void FGAPIENTRY glutForceJoystickFunc( void ) */ void FGAPIENTRY glutSetColor( int nColor, GLfloat red, GLfloat green, GLfloat blue ) { - /* - * - */ + /* We really need to do something here. */ } /* @@ -158,9 +156,7 @@ void FGAPIENTRY glutSetColor( int nColor, GLfloat red, GLfloat green, GLfloat bl */ GLfloat FGAPIENTRY glutGetColor( int color, int component ) { - /* - * - */ + /* We really need to do something here. */ return( 0.0f ); } @@ -169,9 +165,7 @@ GLfloat FGAPIENTRY glutGetColor( int color, int component ) */ void FGAPIENTRY glutCopyColormap( int window ) { - /* - * - */ + /* We really need to do something here. */ } /*** END OF FILE ***/