From: Ash Tyndall Date: Sat, 8 Oct 2011 03:25:21 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=8d6421102f26d4e5b554bbac7b973ed10dd3be2a;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 3e7e8da..d593db6 100644 --- a/scene.c +++ b/scene.c @@ -250,7 +250,9 @@ void makeMenu() { // Create the overmenu int objectMenu = glutCreateMenu(processObjectEvents); for ( int i = 0; objectSubmenu[i]; i++ ) { - glutAddSubMenu( (i + 1) * 10, objectSubmenu[i] ); + char name[2]; + sprintf(name,"%d",(i + 1) * 10); + glutAddSubMenu( name, objectSubmenu[i] ); } glutAddSubMenu("Objects", objectMenu);