From 5757433d2a6527f1cc7d01b0eeca14b7dbb97c07 Mon Sep 17 00:00:00 2001 From: dcnieho Date: Fri, 17 Jan 2014 16:18:35 +0000 Subject: [PATCH] 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 --- freeglut/freeglut/src/fg_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/fg_menu.c b/freeglut/freeglut/src/fg_menu.c index bbae132..9e20d5d 100644 --- a/freeglut/freeglut/src/fg_menu.c +++ b/freeglut/freeglut/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 );