projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added keyboard states for BlackBerry
[freeglut]
/
progs
/
demos
/
timer
/
timer.c
diff --git
a/progs/demos/timer/timer.c
b/progs/demos/timer/timer.c
index
11557f7
..
5119870
100644
(file)
--- a/
progs/demos/timer/timer.c
+++ b/
progs/demos/timer/timer.c
@@
-34,7
+34,8
@@
int menuID, subMenuSurround, subMenuCenter;
void createMenuEntries(int which)
{
void createMenuEntries(int which)
{
- for (int i = 0; i < sizeof(timerInts) / sizeof(*timerInts); i++)
+ int i;
+ for (i = 0; i < sizeof(timerInts) / sizeof(*timerInts); i++)
{
char temp[10] = {'\0'};
/* flag current value */
{
char temp[10] = {'\0'};
/* flag current value */
@@
-51,7
+52,8
@@
void createMenuEntries(int which)
void updateMenuEntries(int which)
{
void updateMenuEntries(int which)
{
- for (int i = 0; i < sizeof(timerInts) / sizeof(*timerInts); i++)
+ int i;
+ for (i = 0; i < sizeof(timerInts) / sizeof(*timerInts); i++)
{
char temp[10] = { '\0' };
/* flag current value */
{
char temp[10] = { '\0' };
/* flag current value */