X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_structure.c;fp=src%2Ffg_structure.c;h=8e1b96646924ff4b9394e57d0bdbebc3dd21b21a;hb=91cac2f34bfc430f6a68ea950cc8f5169327b794;hp=2a65b69ed1eec48d2d3be02c0fef601ea141dc56;hpb=06dca43af755a1956d31b105e1973714c46eda78;p=freeglut diff --git a/src/fg_structure.c b/src/fg_structure.c index 2a65b69..8e1b966 100644 --- a/src/fg_structure.c +++ b/src/fg_structure.c @@ -568,7 +568,7 @@ static void fghcbGetActiveMenu( SFG_Menu *menu, if ( enumerator->found ) return; - /* Check the menu's ID. */ + /* Check the menu's is active */ if( menu->IsActive ) { enumerator->found = GL_TRUE; @@ -580,6 +580,7 @@ static void fghcbGetActiveMenu( SFG_Menu *menu, /* * Returns active menu, if any. Assumption: only one menu active throughout application at any one time. + * This is false when a submenu is also open. * This is easier than fgWindowByXXX as all menus are placed in one doubly linked list... */ SFG_Menu* fgGetActiveMenu( )