09d6d7342e
in some cases, the Menu member variable can be NULL.) Corrected the menu-attach code to make sure that both Window and Menu pointers are non-NULL (rather than "at least one"). Rewrote button-checks to more simply and more clearly assert that the "menu button" is a valid button for menu actions: Instead of laboriously comparing against the three valid buttons (0, 1, 2 or GLUT_BUTTON_*), we do a simpler range-check and the upper bound is {FREEGLUT_MAX_MENUS}, allowing us to change the number of menuable buttons fairly easily in the future. Also deleted a few say-nothing-new comments. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@250 7f0cb862-5218-0410-a997-914c9d46530a |
||
---|---|---|
.. | ||
freeglut |