git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d67d48
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sat, 8 Oct 2011 05:55:38 +0000
(13:55 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sat, 8 Oct 2011 05:55:38 +0000
(13:55 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
4ab75ea
..
1dee027
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-285,7
+285,7
@@
void makeMenu() {
int addObjectMenu = glutCreateMenu(processObjectEvents);
\r
for ( int i = 0; addObjectSubmenu[i]; i++ ) {
\r
char name[10]; // buffer to hold name
\r
- sprintf(name, "%d-%d", i*11 - (i-1), i*11 + 9);
\r
+ sprintf(name, "%d-%d", i*11 - (i-1), i*11
- (i-1)
+ 9);
\r
glutAddSubMenu( name, addObjectSubmenu[i] );
\r
}
\r
\r
UCC
git Repository :: git.ucc.asn.au