summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-01-24 21:41:08 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-01-24 21:41:08 +0000
commit388781a5264266e99822ab50b8818cb3ec744a0f (patch)
tree15c35dec620d5ac69976cd86bda080c85cf01516
parentb3f717037dcba37b4ac32c9ec17061781414a8ca (diff)
silence warning
-rw-r--r--progs/demos/texenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/demos/texenv.c b/progs/demos/texenv.c
index 4c26008136..705cd2621f 100644
--- a/progs/demos/texenv.c
+++ b/progs/demos/texenv.c
@@ -271,7 +271,7 @@ static void keyboard( unsigned char c, int x, int y )
{
switch ( c ) {
case 'c':
- envColor = ++envColor % (int) NUM_ENV_COLORS;
+ envColor = (++envColor) % (int) NUM_ENV_COLORS;
break;
case 'g':
drawBackground = !drawBackground;