STR #3323: glutAddMenuEntry now has a const label argument

This commit is contained in:
Matthias Melcher 2019-02-02 22:16:16 +01:00
parent 30733d2d8d
commit 5cd9f6fb80
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ inline int glutGetMenu() {return glut_menu;}
inline void glutSetMenu(int m) {glut_menu = m;} inline void glutSetMenu(int m) {glut_menu = m;}
FL_EXPORT void glutAddMenuEntry(char *label, int value); FL_EXPORT void glutAddMenuEntry(const char *label, int value);
FL_EXPORT void glutAddSubMenu(char *label, int submenu); FL_EXPORT void glutAddSubMenu(char *label, int submenu);

View File

@ -329,7 +329,7 @@ static Fl_Menu_Item* additem(menu *m) {
return i; return i;
} }
void glutAddMenuEntry(char *label, int value) { void glutAddMenuEntry(const char *label, int value) {
menu *m = &menus[glut_menu]; menu *m = &menus[glut_menu];
Fl_Menu_Item* i = additem(m); Fl_Menu_Item* i = additem(m);
i->text = label; i->text = label;