X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_misc.c;h=e515b9be1e6dab2c834126b0909f2e235fde69c3;hb=91fa73f22d66ddca47d3402ffaac09cebfb36190;hp=62633c5b44560c986108f8462ca189dc74c5ce08;hpb=d67937396dc33c86017012859b2d9ed010fc6c88;p=freeglut diff --git a/src/freeglut_misc.c b/src/freeglut_misc.c index 62633c5..e515b9b 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 ); @@ -98,7 +96,7 @@ void FGAPIENTRY glutReportErrors( void ) void FGAPIENTRY glutIgnoreKeyRepeat( int ignore ) { freeglut_assert_ready; - freeglut_assert_window; + FREEGLUT_EXIT_IF_NO_WINDOW ( "glutIgnoreKeyRepeat" ); fgStructure.Window->State.IgnoreKeyRepeat = ignore ? GL_TRUE : GL_FALSE; } @@ -142,7 +140,7 @@ void FGAPIENTRY glutForceJoystickFunc( void ) freeglut_return_if_fail( fgStructure.Window != NULL ); freeglut_return_if_fail( FETCH_WCB( *( fgStructure.Window ), Joystick ) ); fgJoystickPollWindow( fgStructure.Window ); -#endif //!TARGET_HOST_WINCE +#endif /* !TARGET_HOST_WINCE */ } /* @@ -150,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. */ } /* @@ -160,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 ); } @@ -171,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 ***/