add small note: closing menu before executing callback is also important so that the callback can actually modify the menu

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1636 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2014-01-17 16:18:35 +00:00
parent bf2ff7171a
commit 5757433d2a

View File

@ -607,7 +607,7 @@ GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed,
fgSetWindow( parent_window ); fgSetWindow( parent_window );
fgStructure.CurrentMenu = active_menu; 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 ); fgDeactivateMenu( parent_window );
active_menu->Callback( active_entry->ID ); active_menu->Callback( active_entry->ID );