X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_menu.c;h=9d9606d54dde2b82fd98524b55dea5755f5fe0f3;hb=67f242b7dd68bea7dea467f9b5265c8448b6655e;hp=bbae132bb1c941886fbfecae3e7c22511cf6c774;hpb=a00c7ee3552b527ac6b375d6a6ca42f90770ddc3;p=freeglut diff --git a/src/fg_menu.c b/src/fg_menu.c index bbae132..9d9606d 100644 --- a/src/fg_menu.c +++ b/src/fg_menu.c @@ -1,5 +1,5 @@ /* - * freeglut_menu.c + * fg_menu.c * * Pull-down menu creation and handling. * @@ -607,7 +607,7 @@ GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed, fgSetWindow( parent_window ); fgStructure.CurrentMenu = active_menu; - /* Deactivate menu and then call callback (we don't want menu to stay in view while callback is executing) */ + /* Deactivate menu and then call callback (we don't want menu to stay in view while callback is executing, and user should be able to change menus in callback) */ fgDeactivateMenu( parent_window ); active_menu->Callback( active_entry->ID ); @@ -782,7 +782,7 @@ void fghCalculateMenuBoxSize( void ) */ int FGAPIENTRY glutCreateMenu( FGCBMenu callback ) { - /* The menu object creation code resides in freeglut_structure.c */ + /* The menu object creation code resides in fg_structure.c */ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutCreateMenu" ); if (fgState.ActiveMenus) fgError("Menu manipulation not allowed while menus in use."); @@ -804,7 +804,7 @@ void FGAPIENTRY glutDestroyMenu( int menuID ) if (fgState.ActiveMenus) fgError("Menu manipulation not allowed while menus in use."); - /* The menu object destruction code resides in freeglut_structure.c */ + /* The menu object destruction code resides in fg_structure.c */ fgDestroyMenu( menu ); }