X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_callbacks.c;h=1cfecc513af01d9a3496fd36589f27b71b5b6655;hb=3cfbcf91639c23ef9be707f4942af3c8cbf15500;hp=8c7280547910268db626b5caef0e5aa4b4ba1e2b;hpb=3d059cdfbb1482fd92174664fbca0c29672f4db8;p=freeglut diff --git a/src/freeglut_callbacks.c b/src/freeglut_callbacks.c index 8c72805..1cfecc5 100644 --- a/src/freeglut_callbacks.c +++ b/src/freeglut_callbacks.c @@ -133,9 +133,6 @@ void FGAPIENTRY glutTimerFunc( unsigned int timeOut, void (* callback)( int ), i /* * Sets the Visibility callback for the current window. - * - * I had to peer to GLUT sources to clean up the mess. - * Can anyone please explain me what is going on here?!? */ static void fghVisibility( int status ) { @@ -181,9 +178,6 @@ void FGAPIENTRY glutSpecialUpFunc( void (* callback)( int, int, int ) ) void FGAPIENTRY glutJoystickFunc( void (* callback)( unsigned int, int, int, int ), int pollInterval ) { SET_CALLBACK( Joystick ); - - freeglut_return_if_fail( fgStructure.Window != NULL ); - /* * Do not forget setting the joystick poll rate */ @@ -247,7 +241,8 @@ void FGAPIENTRY glutWMCloseFunc( void (* callback)( void ) ) /* A. Donev: Destruction callback for menus */ void FGAPIENTRY glutMenuDestroyFunc( void (* callback)( void ) ) { - if( fgStructure.Menu == NULL ) return; + if( fgStructure.Menu == NULL ) + return; fgStructure.Menu->Destroy = callback; }