fgSetWindow ( menuEntry->SubMenu->Window ) ;
glutPositionWindow ( menuEntry->SubMenu->X, menuEntry->SubMenu->Y ) ;
glutReshapeWindow ( menuEntry->SubMenu->Width, menuEntry->SubMenu->Height ) ;
- glutPopWindow () ;
+ glutPopWindow () ;
glutShowWindow () ;
menuEntry->SubMenu->Window->ActiveMenu = menuEntry->SubMenu ;
fgSetWindow ( current_window ) ;
*/
window->ActiveMenu = menu;
menu->IsActive = TRUE ;
+ fgState.ActiveMenus ++ ;
/*
* Set up the initial menu position now:
menu->ParentWindow->ActiveMenu = NULL ;
menu->IsActive = FALSE ;
+ fgState.ActiveMenus -- ;
+
/*
* Hide all submenu windows, and the root menu's window.
*/