STR #3323: glutAddMenuEntry now has a const label argument
This commit is contained in:
parent
30733d2d8d
commit
5cd9f6fb80
@ -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);
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user