#include "freeglut_internal.h"
/* -- DEFINITIONS ---------------------------------------------------------- */
#include "freeglut_internal.h"
/* -- DEFINITIONS ---------------------------------------------------------- */
- * OK, have the sub-menu checked, too. If it returns TRUE, it
+ * OK, have the sub-menu checked, too. If it returns GL_TRUE, it
* will mean that it caught the mouse cursor and we do not need
* to regenerate the activity list, and so our parents do...
*/
* will mean that it caught the mouse cursor and we do not need
* to regenerate the activity list, and so our parents do...
*/
* Reactivate the submenu as the checkMenuStatus may have turned
* it off if the mouse is in its parent menu entry.
*/
* Reactivate the submenu as the checkMenuStatus may have turned
* it off if the mouse is in its parent menu entry.
*/
for( menuEntry = (SFG_MenuEntry *)menu->Entries.First;
menuEntry;
menuEntry = (SFG_MenuEntry *)menuEntry->Node.Next )
for( menuEntry = (SFG_MenuEntry *)menu->Entries.First;
menuEntry;
menuEntry = (SFG_MenuEntry *)menuEntry->Node.Next )
glBegin( GL_QUADS );
glVertex2i( border, border);
glVertex2i( menu->Width - border, border);
glBegin( GL_QUADS );
glVertex2i( border, border);
glVertex2i( menu->Width - border, border);
* Mark the menu as active, so that it gets displayed:
*/
window->ActiveMenu = menu;
* Mark the menu as active, so that it gets displayed:
*/
window->ActiveMenu = menu;
* Forget about having that menu active anymore, now:
*/
menuEntry->SubMenu->Window->ActiveMenu = NULL;
* Forget about having that menu active anymore, now:
*/
menuEntry->SubMenu->Window->ActiveMenu = NULL;
/*
* If the entry is a submenu, then it needs to be wider to
* accomodate the arrow. JCJ 31 July 2003
*/
if (menuEntry->SubMenu )
/*
* If the entry is a submenu, then it needs to be wider to
* accomodate the arrow. JCJ 31 July 2003
*/
if (menuEntry->SubMenu )