From: Diederick Niehorster Date: Fri, 17 Jan 2014 16:18:35 +0000 (+0000) Subject: add small note: closing menu before executing callback is also important so that... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=12014d2904b0c95f15e452d82b2753751891a45b;p=freeglut add small note: closing menu before executing callback is also important so that the callback can actually modify the menu git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1636 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/fg_menu.c b/src/fg_menu.c index bbae132..9e20d5d 100644 --- a/src/fg_menu.c +++ b/src/fg_menu.c @@ -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 );