X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_misc.c;h=e515b9be1e6dab2c834126b0909f2e235fde69c3;hb=91fa73f22d66ddca47d3402ffaac09cebfb36190;hp=281325227aa3e9419ed91f99b5ddd370a5a9c8f7;hpb=a630da4d7b24b4147120facf3f7a6a6839d31fb5;p=freeglut diff --git a/src/freeglut_misc.c b/src/freeglut_misc.c index 2813252..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; } @@ -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 ***/