X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_init.c;h=153838807d4b4695366a6f4acafc62df978923b5;hb=0ae4baa1e5b17572ebad1b9e9a9b32000fc8dd4b;hp=a553b9b1cc3781a8d4d6c726688cc07d6eef656b;hpb=3fe7f83d7e5101f5b834a42dfe8c64c2679b3169;p=freeglut diff --git a/src/fg_init.c b/src/fg_init.c index a553b9b..1538388 100644 --- a/src/fg_init.c +++ b/src/fg_init.c @@ -668,19 +668,19 @@ void FGAPIENTRY glutInitContextProfile( int profile ) /* * Sets the user error handler (note the use of va_list for the args to the fmt) */ -void FGAPIENTRY glutInitErrorFunc( void (* vfgError) ( const char *fmt, va_list ap ) ) +void FGAPIENTRY glutInitErrorFunc( FGError callback ) { /* This allows user programs to handle freeglut errors */ - fgState.ErrorFunc = vfgError; + fgState.ErrorFunc = callback; } /* * Sets the user warning handler (note the use of va_list for the args to the fmt) */ -void FGAPIENTRY glutInitWarningFunc( void (* vfgWarning) ( const char *fmt, va_list ap ) ) +void FGAPIENTRY glutInitWarningFunc( FGWarning callback ) { /* This allows user programs to handle freeglut warnings */ - fgState.WarningFunc = vfgWarning; + fgState.WarningFunc = callback; } /*** END OF FILE ***/